make varnish_ban.sh more flexible
This commit is contained in:
parent
e4b8dc7c0b
commit
5e16fcd9c2
1 changed files with 1 additions and 1 deletions
|
|
@ -1,3 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
# 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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue