January 23, 2016 · Varnish Debian

Varnish bug in Debian

Debian Logo

There is a bug in Debian 8.3 when installing varnish from the official repository. A simple work around is to edit the startup paramaters that is getting ignored in the /etc/varnish/default.vcl file. As root edit the following file:

nano /lib/systemd/system/varnish.service

change line 7 from:

ExecStart=/usr/sbin/varnishd -a :6082 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m


to (note the -a: 80)

ExecStart=/usr/sbin/varnishd -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m

Save the file and restart the varnish service with:

systemctl daemon-reload


systemctl restart varnish.service

  • LinkedIn
  • Tumblr
  • Reddit
  • Google+
  • Pinterest
  • Pocket
Comments powered by Disqus