Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 461624 - www-servers/varnish-3.0.3 - the default setup ignores the configuration file
Summary: www-servers/varnish-3.0.3 - the default setup ignores the configuration file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-13 12:20 UTC by Ștefan Talpalaru
Modified: 2013-06-18 01:02 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ștefan Talpalaru 2013-03-13 12:20:40 UTC
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
Comment 1 Anthony Basile gentoo-dev 2013-06-18 01:02:20 UTC
(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"