aboutsummaryrefslogtreecommitdiffstats
path: root/config/varnish-alaveteli.vcl
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-06-23 09:33:42 +0100
committerRobin Houston <robin.houston@gmail.com>2012-06-23 09:33:42 +0100
commitdb1a388f0a7b37cc0ceb3ca07b995b34dabdba58 (patch)
treee34df5ae0dacdbf6c3b77542b22f2d9e3799d322 /config/varnish-alaveteli.vcl
parenta7cc84b9b2b430644fe23e6328d7ab289e7abf0a (diff)
parent7d0fea4b38c214a67b2fc4b56aa670e02a3cda61 (diff)
Merge branch 'develop' of github.com:sebbacon/alaveteli into develop
Conflicts: Gemfile.lock script/handle-mail-replies script/handle-mail-replies.rb spec/controllers/request_controller_spec.rb
Diffstat (limited to 'config/varnish-alaveteli.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);