i have installed varnish , fallowed exact instruction setting up, however, not working expected.
my /etc/default/varnish setup is:
daemon_opts="-a :80 \ -t localhost:1234 \ -f /etc/varnish/default.vcl \ -s /etc/varnish/secret \ -s malloc,256m"
my /etc/varnish/default.vlc setup is
backend default { .host = "localhost"; .port = "8080"; }
my apache port.conf setup is:
namevirtualhost 127.0.0.1:8080 listen 127.0.0.1:8080 <ifmodule ssl_module> listen 443 </ifmodule> <ifmodule mod_gnutls.c> listen 443 </ifmodule>
i running ubuntu 15.04 apache 2.4.10. when start varnish , check process fallowing:
0:00 /usr/sbin/varnishd -a :6081 -t localhost:6082 -f /etc/varnish/default.vcl -s /etc/varnish/secret -s malloc,256m
seems neither of listen address or management interface work set in /etc/varnish/default.vcl. none of virtual machines work result. how can solve ?
ok. problem solved. first
sudo grep -r 'execstart=/usr/sbin/varnishd' /etc/
so can find other place daemon options varnish set (in case /etc/systemd/system/multi-user.target.wants/varnish.service). open file in vim,nano or whatever , set "execstart" in file fallows:
-a :[same /etc/default/varnish]80 -t localhost:[same /etc/default/varnish]1234 -f [same /etc/default/varnish ]/etc/varnish/default.vcl -s [same /etc/default/varnish ]/etc/varnish/secret -s malloc,256m
save , exit. after do:
systemctl daemon-reload systemctl restart varnish.service
and done. nothing official tutorial. apparently old.
Comments
Post a Comment