Varnish configuration

Varnish configuration

RHEL/CentOS

  • Daemon configuration: /etc/sysconfig/varnish

  • Cache configuration: /etc/varnish/default.vcl

Debugging the configuration

  • Test the VCL:

    /usr/sbin/varnishd -d -f /etc/varnish/default.vcl
  • Trace the client and backend connections:

    varnishlog
    • Communication between Varnish and the client is marked with "c".

    • Communication between Varnish and the backend is marked with "b".