Varnish config for caching

by Balasundaram

Varnish is one of the powerful caching used widely.

The below config is the basic config for varnish

backend default {

.host = “127.0.0.1”;
.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/……………

Advertisements