url.purge
Pavel Pragin
ppragin at SolutionSet.com
Mon Apr 21 16:25:58 CEST 2008
Hello,
Please help me get Purging working. I am really stuck. I followed the
directions in this link:
http://varnish.projects.linpro.no/wiki/VCLExamplePurging
I added these lines to my VCL configuration file and restarted Varnish:
sub vcl_hit {
if (req.request == "PURGE") {
set obj.ttl = 0s;
error 200 "Purged.";
}
}
When I connect to Apache on port 80 and send these command nothing
happens. I need a way to Purge on the fly!
[root at 155496-app3 varnish]# telnet 67.192.43.99 80
Trying 6.12.4.9...
Connected to 6.12.4.9.
Escape character is '^]'.
PURGE / HTTP/1.1
Host: www.bla.net
Thanks
-----Original Message-----
From: varnish-misc-bounces at projects.linpro.no
[mailto:varnish-misc-bounces at projects.linpro.no] On Behalf Of
Poul-Henning Kamp
Sent: Monday, April 21, 2008 3:59 AM
To: Sven Tietje
Cc: varnish-misc at projects.linpro.no
Subject: Re: url.purge
In message <000601c8a39a$27269470$9e00a8c0 at stade.topconcepts.net>, "Sven
Tietje
" writes:
>so, i try to purge all documents for a host by doing
>varnishadm -T 127.0.0.1:6082 url.purge "#http://mydomain.de/#$"
url.purge only operates on the URL part of the request, not on the
Host: header part.
If you need to select on both host+url you need to use hash.purge
CLI command and the hash string, by default is built from URL first
and host last, so the command to purge
http://foo.bar.com/index.html
would be:
hash.purge "index.html#foo.bar.com#"
--
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.
_______________________________________________
varnish-misc mailing list
varnish-misc at projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc
More information about the varnish-misc
mailing list