use varnish 6 ban command
This commit is contained in:
parent
2c6a0db863
commit
c4fa529183
2 changed files with 1 additions and 63 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue