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!
[EMAIL PROTECTED] 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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Poul-Henning Kamp
Sent: Monday, April 21, 2008 3:59 AM
To: Sven Tietje
Cc: [email protected]
Subject: Re: url.purge
In message <[EMAIL PROTECTED]>, "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
[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
_______________________________________________
varnish-misc mailing list
[email protected]
http://projects.linpro.no/mailman/listinfo/varnish-misc