use varnish 6 ban command

This commit is contained in:
Oliver Ladner 2021-11-12 22:19:29 +01:00
commit c4fa529183
2 changed files with 1 additions and 63 deletions

View file

@ -2,7 +2,7 @@
# Ban (purge) all on localhost
# Varnish 4
varnishadm -T localhost:6082 -S /etc/varnish/secret "ban req.http.host ~ $1"
#varnishadm -T localhost:6082 -S /etc/varnish/secret "ban req.http.host ~ $1"
# Varnish 5
varnishadm -T localhost:6082 -S /etc/varnish/secret ban req.http.host == $1