Re: Question about Cache Purge

2009-07-14 Thread Kristian Lyngstol
On Thu, Jul 09, 2009 at 02:17:35PM -0500, Brian Pan wrote:
 Hi all,
 
 I have a newbie question regarding 'purging the cache.'  When I run the 
 following command to purge the root domain of my website,
 
 varnishadm -T localhost:80  purge.url ^/$

Are you sure the admin interface is at port 80? That sounds very unlikely.

How do you start varnishd? Varnish can listen to _two_ ports, one is
typically port 80, where normal HTTP data is served, the other is an
administrative interface, which is what you want to specify with -T.

-- 
Kristian Lyngstøl
Redpill Linpro AS
Tlf: +47 21544179
Mob: +47 99014497


pgp48o51KyH9R.pgp
Description: PGP signature
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Question about Cache Purge

2009-07-13 Thread Brian Pan
Hi all,

I have a newbie question regarding 'purging the cache.'  When I run the 
following command to purge the root domain of my website,

varnishadm -T localhost:80  purge.url ^/$

I get this error:

An error occured in receiving status.

Based on examples, I've setup my VCL as follows:

//
acl purge {
localhost;
my local ip address;
}

sub vcl_recv {
# Allow wildcard purging
if (req.request == PURGE){
if (!client.ip ~ purge) {
error 405 Not allowed.;
}
purge_url(req.url); }
...

//***

Any help would be greatly appreciated.

Thanks,
Brian
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc