make varnish_ban.sh more flexible

This commit is contained in:
Oliver Ladner 2017-01-12 20:04:32 +01:00
commit 5e16fcd9c2

View file

@ -1,3 +1,3 @@
#!/usr/bin/env bash #!/usr/bin/env bash
# Ban (purge) all on localhost # Ban (purge) all on localhost
varnishadm -T localhost:6082 "ban req.url ~ ." -S /etc/varnish/secret varnishadm -T localhost:6082 -S /etc/varnish/secret "ban req.http.host ~ $1"