Skip to content
Edge Side Includes Demo
PHP Shell Perl
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
Vagrantfile
actual.vcl
bootstrap.min.css
catfacts.json
catfacts.php
default.vcl
index.php
provision-edge.sh
provision-web.sh
response-cache.vtc

README.md

Edge Side Includes Demo

Requirements

Vagrant

Running Demo

1. Boot virtual machines

vagrant up

2. Evaluate Requests

Accessing VMs

vagrant ssh web
# or
vagrant ssh edge

varnishtest example

# from within "edge" VM
cd /vagrant
varnishtest response-cache.vtc

VCL editing

When the edge VM is provisioned the default.vcl file is copied to /etc/varnish to replace the default VCL.

The default.vcl file includes /vagrant/actual.vcl which is the VCL file containing the actual VCL code.

You can make adjustments to actual.vcl on your workstation and then reload them from within edge VM as follows:

# from within "edge" VM

# live reload
sudo service varnish reload

# or

# hard restart
sudo service varnish restart
# from within "edge" VM
cd /vagrant
varnishtest response-cache.vtc

More reading

Varnish test resources

You can’t perform that action at this time.