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

Category: Web Servers & Proxies

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

Compile-check a VCL file without starting Varnish

-C compiles the VCL (Varnish Configuration Language = the caching rules file) and prints the generated C code, exiting with an error and line number on problems. Run it after every VCL edit, because a bad compile stops the cache from starting. The -f flag names the VCL file to use.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.