diff options
Diffstat (limited to 'config/varnish-alaveteli.vcl')
-rw-r--r-- | config/varnish-alaveteli.vcl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/varnish-alaveteli.vcl b/config/varnish-alaveteli.vcl index 452a956da..77350a8c8 100644 --- a/config/varnish-alaveteli.vcl +++ b/config/varnish-alaveteli.vcl @@ -87,6 +87,11 @@ sub vcl_recv { if (!client.ip ~ purge) { error 405 "Not allowed."; } + + # For an explanation of the followng roundabout way of defining + # ban lists, see + # http://kristianlyng.wordpress.com/2010/07/28/smart-bans-with-varnish/ + # XXX in Varnish 2.x, the following would be # purge("obj.http.x-url ~ " req.url); ban("obj.http.x-url ~ " + req.url); |