Checking varnish configuration syntax

Fonte: https://codepoets.co.uk/2011/checking-varnish-configuration-syntax/ Em: 29-01-2020

If you’ve updated your varnish server’s configuration, there doesn’t seem to be an equivalent of ‘apachectl configtest’ for it, but you can do :

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

If everything is correct, varnish will then dump out the generated configuration. Otherwise you’ll get an error message pointing you to a specific line number.