Varnish Cache is an HTTP accelerator.

By caching output, you reduce calls the the database and speed site performance.


The most common function is clearing Cache after changes are made.

To clear cache, click the Clear Cache button as show below:


If Varnished has stopped for any reason, a Start button will appear as below:


You can also stop/start/restart Varnish via command line:

service varnish stop | stop | restart | status


The main varnish configuration file, default.vcl is located at:


The content will contain a backend default similar to below:

backend default {
.host = "";
.port = "8080";

Note the backend port, which is the port that Apache is on.

Similarly, Varnish itself is run on port 80. This is defined in the varnish.service file located at:


The contents of varnish.conf are as below:

ExecStart=/usr/sbin/varnishd -j unix,user=vcache -F -a :80 -a localhost:8443,PROXY -p feature=+http2 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,1g

Note that Varnish is accepting requests on 80 and proxy HTTPS requests to 8443


Because Varnish does not work with HTTPS, we use Hitch to handle all HTTPS requests.