url.purge
Poul-Henning Kamp
phk at phk.freebsd.dk
Mon Apr 21 16:49:16 CEST 2008
In message <DF3A409993D9D940BA8B02F0C396CF8A014C17B8 at mailserver.form-studios.co
m>, "Pavel Pragin" writes:
>I tried the whole example it still doesn't work.
>Here is my whole vcl file:
Order is important here...
Your first vcl_recv {} sends the PURGE request to pipe before the
second copy ever gets at it.
> sub vcl_recv {
[...]
> if (req.request !=3D "GET" && req.request !=3D "HEAD") {
> pipe;
> }
[...]
> }
>sub vcl_recv {
> if (req.request =3D=3D "PURGE") {
> if (!client.ip ~ purge) {
> error 405 "Not allowed.";
> }
> lookup;
> }
>}
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-misc
mailing list