diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-05-04 11:06:15 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-05-04 11:06:15 +0100 |
commit | be672f0fecc61cd874b07dd6157deca7c5df1a76 (patch) | |
tree | 7afdfba13e5f5ce92e625eaec0c2dd1e1c1157e4 | |
parent | 24caa3143d238412e25752baf4a3af08171853d6 (diff) |
Add comment to sample VCL to show how to make it 2.x compatible
-rw-r--r-- | config/varnish-alaveteli.vcl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/config/varnish-alaveteli.vcl b/config/varnish-alaveteli.vcl index 089daed5e..452a956da 100644 --- a/config/varnish-alaveteli.vcl +++ b/config/varnish-alaveteli.vcl @@ -87,6 +87,8 @@ sub vcl_recv { if (!client.ip ~ purge) { error 405 "Not allowed."; } + # XXX in Varnish 2.x, the following would be + # purge("obj.http.x-url ~ " req.url); ban("obj.http.x-url ~ " + req.url); error 200 "Banned"; } |