Varnish default VCL access control list Varnish default VCL access control list apache apache

Varnish default VCL access control list


Run varnishd in debug mode and it should show you where the error is. Example:

# varnishd -d -f /etc/varnish/default.vclMessage from VCC-compiler:Expected an action, 'if', '{' or '}'('input' Line 32 Pos 6)     resp.http.Cache-Control = "max-age=60";-----#######################----------------


You can also use the compile flag (-C) to find any syntax errors in your VCL. This won't startup any servers, it simply compiles the VCL into C and prints the output.

varnishd -C -f /etc/varnish/main.vcl