scripts/varnish_ban.sh

8 lines
231 B
Bash
Raw Permalink Normal View History

2014-09-21 16:14:58 +02:00
#!/usr/bin/env bash
# Ban (purge) all on localhost
2018-10-09 13:38:53 +02:00
# Varnish 4
2021-11-12 22:19:29 +01:00
#varnishadm -T localhost:6082 -S /etc/varnish/secret "ban req.http.host ~ $1"
2018-10-09 13:38:53 +02:00
# Varnish 5
varnishadm -T localhost:6082 -S /etc/varnish/secret ban req.http.host == $1