scripts/varnish_ban.sh

3 lines
128 B
Bash
Raw Normal View History

2014-09-21 16:14:58 +02:00
#!/usr/bin/env bash
# Ban (purge) all on localhost
2017-01-12 20:04:32 +01:00
varnishadm -T localhost:6082 -S /etc/varnish/secret "ban req.http.host ~ $1"