Pavel Pragin ppragin at SolutionSet.com
Mon Apr 21 16:25:58 CEST 2008


Please help me get Purging working. I am really stuck. I followed the
directions in this link:

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 80
Connected to
Escape character is '^]'.
Host: www.bla.net


-----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
" writes:

>so, i try to purge all documents for a host by doing 
>varnishadm -T 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 
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
varnish-misc mailing list
varnish-misc at projects.linpro.no

More information about the varnish-misc mailing list