In my varnish default.vcl i have the following code:
include "vars.vcl";
When i try to start my varnish i get this error message:
Message from VCC-compiler:
Cannot read file 'vars.vcl': No such file or directory
('input' Line 6 Pos 9)
include "vars.vcl";
--------##########-
Running VCC-compiler failed, exited with 2
VCL compilation failed
The file 'vars.vcl' is in the directory /etc/varnish/ where also the default.vcl is stored. it is a symlink to the actual vars.vcl.
I have no idea why the include won't work, could it be that varnish can't work with symlinks? Why can't it find the file?
You have to pass the parameter
vcl_dir
tovarnishd
. You can test it with: