scripts/varnish_ban.sh

3 lines
128 B
Bash
Executable file

#!/usr/bin/env bash
# Ban (purge) all on localhost
varnishadm -T localhost:6082 -S /etc/varnish/secret "ban req.http.host ~ $1"