Charlie Farinella <[EMAIL PROTECTED]> writes:

> We have our vcl.conf configured like this:

You need something in your vcl_recv as well, to match against the
purge acl, and force it to "lookup" on an acl match.  It would go
nicely inside the "pipe if not GET or HEAD request" from the default
vcl like this:

sub vcl_recv {
  # [...]

  if (req.request != "GET" && req.request != "HEAD") {
    if (req.request == "PURGE") {
      if (!client.ip ~ purge) {
        error 405 "Not allowed.";
      }
      lookup;
    }
    set req.http.connection = "close";
    pipe;
  }

  # [...]
}

-- 
Stig Sandbeck Mathisen, Linpro
_______________________________________________
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc

Reply via email to