Varnish configuration
RHEL/CentOS
Daemon configuration:
/etc/sysconfig/varnishCache configuration:
/etc/varnish/default.vcl
Debugging the configuration
Test the VCL:
/usr/sbin/varnishd -d -f /etc/varnish/default.vclTrace the client and backend connections:
varnishlogCommunication between Varnish and the client is marked with "c".
Communication between Varnish and the backend is marked with "b".
I've found using "varnishlog -c -o ReqStart 123.123.123" (where 123.123.123 is your workstation IP address) is very helpful in filtering the firehose of information from varnishlog down to something where you can see the traffic for a particular client-server conversation.