VARNISHD_OPTS in /etc/conf.d/varnishd don't have the '-f' switch so /etc/varnish/default.vcl is completely ignored. Further more, '-f' is incompatible with '-b' so I propose the following default: VARNISHD_OPTS="-a 127.0.0.1:8080 -f /etc/varnish/default.vcl" or a line mentioning the behavior. Reproducible: Always
(In reply to Stefan Talpalaru from comment #0) > VARNISHD_OPTS in /etc/conf.d/varnishd don't have the '-f' switch so > /etc/varnish/default.vcl is completely ignored. Further more, '-f' is > incompatible with '-b' so I propose the following default: > > VARNISHD_OPTS="-a 127.0.0.1:8080 -f /etc/varnish/default.vcl" > > or a line mentioning the behavior. > > Reproducible: Always Okay I've got the following lines in confd. I think this covers the bases: # Listen on 127.0.0.1:8080 and connect to backend 127.0.0.1:80 # Ignore the config file, /etc/varnish/default.vcl VARNISHD_OPTS="-a 127.0.0.1:8080 -b 127.0.0.1:80" # Alternatively, don't listen to a backend and use # the config file #VARNISHD_OPTS="-a 127.0.0.1:8080 -f /etc/varnish/default.vcl"