use Varnish 5 syntax for banning

This commit is contained in:
Oliver Ladner 2018-10-09 13:38:53 +02:00
commit 3cc03fca0f

View file

@ -1,3 +1,8 @@
#!/usr/bin/env bash
# Ban (purge) all on localhost
# Varnish 4
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