Commit 3592eeda authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Aim the axe at vcl_pass{}

parent 6ed1b68b
......@@ -14,7 +14,7 @@ varnish v1 -vcl+backend {
return (pass);
}
sub vcl_pass {
sub vcl_backend_fetch {
set bereq.method = bereq.request + "C";
set bereq.request = bereq.method + "D";
}
......
......@@ -7,8 +7,9 @@ server s1 {
varnish v1 -vcl+backend {
sub vcl_recv {
if (req.http.X-Banned == "check") { remove req.http.X-Banned; }
elseif (req.restarts == 0) {
if (req.http.X-Banned == "check") {
remove req.http.X-Banned;
} elseif (req.restarts == 0) {
set req.http.X-Banned = "check";
if (req.http.x-pass) {
return (pass);
......
......@@ -14,7 +14,7 @@ varnish v1 -vcl {
varnish v1 -vcl {
backend b { .host = "127.0.0.1"; }
sub vcl_miss { error 100 req.url ; }
sub vcl_pass { error 100 "the butter please" ; }
sub vcl_lookup { error 100 "the butter please" ; }
sub vcl_backend_response { error beresp.status req.url; }
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment