Question about Cache Purge

Brian Pan brian.pan at light-mc.com
Thu Jul 9 21:17:35 CEST 2009


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20090709/3cbb5922/attachment-0001.html>


More information about the varnish-misc mailing list