In message <[EMAIL PROTECTED]
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
[EMAIL PROTECTED]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.
_______________________________________________
varnish-misc mailing list
[email protected]
http://projects.linpro.no/mailman/listinfo/varnish-misc

Reply via email to