use Varnish 5 syntax for banning
This commit is contained in:
parent
ef64b181cc
commit
3cc03fca0f
1 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue