aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-06-20 08:39:25 +0100
committerSeb Bacon <seb.bacon@gmail.com>2012-06-20 08:39:25 +0100
commit91f55f1102134ff3d8ef1c7c4d367d8512d7e54d (patch)
tree1694a0ba171754c37bba7270bdf5e0e6364558ed
parentf35432197c85911d400a21ba4bfe099210a8811b (diff)
Comment explaining the suggested method of implement purge in the VCL
-rw-r--r--config/varnish-alaveteli.vcl5
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);