TIME=$(date +%s)
varnishadm vcl.load r_$TIME /etc/varnish/default.vcl
varnishadm vcl.use r_$TIME
Tag Archives: varnish
varnish can not change port
If you want to change to 8888:
grep -R 'ExecStart=/usr/sbin/varnishd' /etc/
/etc/systemd/system/multi-user.target.wants/varnish.service:ExecStart=/usr/sbin/varnishd -j unix,user=vcache -F -a :8888 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,256m
systemctl daemon-reload
systemctl restart varnish.service
nginx varnish proxy too many redirects
In case of php-fpm try: fastcgi_param HTTPS on;
varnish test config
varnishd -C -f /etc/varnish/default.vcl
varnishtop: error while loading shared libraries: libvarnishapi.so.2: cannot open shared object file: No such file or directory
ldconfig
varnish reload config
vcl.load reload01 /etc/varnish/default.vcl
vcl.use reload01
varnish check config on Centos
varnishd -C -f /etc/varnish/default.vcl