varnishadm vcl.load main /etc/varnish/default.vcl

Category: Web Servers & Proxies

varnishadm vcl.load main /etc/varnish/default.vcl

Compile and load a new VCL into Varnish

Compiles the VCL file and stores it under the name main without activating it, so a syntax error leaves the running config untouched. Errors are reported immediately with line numbers. Follow with varnishadm vcl.use main to make it active.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.