scripts/varnish_ban.sh

8 lines
231 B
Bash
Executable file

#!/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