Installing Varnish as per the Varnish Book? -


i have vanilla debian digitalocean machine , i'm trying follow 'developer' course in varnish book. i've got the first exercise, installation.

i've installed apache , got running on port 8080 (if go http://my.ip.xxx.xxx:8080 see apache2 debian default page. i've installed varnish, steps 1-3 fine.

now i'm trying follow steps 4 , 5. i've edited /etc/default/varnish follows:

daemon_opts="-a :80 \          -t localhost:1234 \          -f /etc/varnish/default.vcl \          -s /etc/varnish/secret \          -s malloc,256m" 

and i've edited /etc/varnish/default.vcl follows:

backend default {    .host = "localhost";    .port = "8080"; } 

then i've run service varnish start, produces no errors.

but if go http://my.ip.xxx.xxx (i.e. no port number) see nothing.

what doing wrong?

if run netstat -ntlp suggested in book, see varnish on ports 6081 , 6082, , apache on port 8080, nothing on port 80.

old question had problem myself. in case had edit /lib/systemd/system/varnishncsa.service systemd taking on legacy initd.

[service] execstart=/usr/sbin/varnishd -j unix,user=vcache -f -a :80 -t localhost:1234 -f /etc/varnish/abadcer.vcl -s /etc/varnish/secret -s malloc,256m 

then commit changes , restart varnish

sudo systemctl daemon-reload sudo service varnish restart 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -