Varnish config for caching

Varnish is one of the powerful caching used widely.

The below config is the basic config for varnish

backend default {

.host = “”;
.port = “8071”;

It should be added in the default.vcl in /etc/varnish/default.vcl

Then it should be restarted by using

sudo varnishd -f /etc/varnish/default.vcl start

The main advantage of varnish caching is , It is very powerful for serving dynamic content.

more config to follow/……………