Search squid archive

Re: How can I purge an object from my cache?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 8/15/07, Amos Jeffries <squid3@xxxxxxxxxxxxx> wrote:
> > Hi All,
> >
> > I want to purge an object from squid cache. I refered to below URL.
> >
> > http://wiki.squid-cache.org/SquidFaq/OperatingSquid#head-f418956943bd72ee8b94390ec9df241c3d1dfd20
> >
> > # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
> >
> > # Example rule allowing access from your local networks. Adapt
> > # to list your (internal) IP networks from where browsing should
> > # be allowed
> >
> > acl mynet src 192.168.101.0/25
> > http_access allow mynet
> >
> > acl PURGE method PURGE
> > acl localhost src   127.0.0.1/255.255.255.255
> > http_access allow PURGE localhost
> > http_access deny PURGE
> >
> > When, I restart squid , I will get below error.
> >
> >
> > [root@mailgw squid]# /etc/init.d/squid restart
> > Stopping squid: 2007/08/15 10:50:54| WARNING: '127.0.0.1' is a
> > subnetwork of '  127.0.0.1'
> > 2007/08/15 10:50:54| WARNING: because of this ' 127.0.0.1' is ignored
> > to keep splay tree searching predictable
> > 2007/08/15 10:50:54| WARNING: You should probably remove ' 127.0.0.1'
> > from the ACL named 'localhost'
> > ..
> >                              [  OK  ]
> > Starting squid: .                                          [  OK  ]
> >
> > Where have I gone wrong?
>
> It looks like squid has barfed on the multiple spaces between src and 127.
> Try removing those.

BELOW URL HELPED ME.

http://cvs.squid-cache.org/mail-archive/squid-users/200503/0305.html

localhost has been defined by deault.

Sc, I chaned as follows.

acl PURGE method PURGE
acl lclhost src 127.0.0.1/255.255.255.255
http_access allow PURGE lclhost
http_access deny PURGE

then, restarted. It works.

Then , I tried to remove stuff from cache.

some worked. Some DID NOT.

Pls see below

DID NOT WORK
[root@firebox squid]# squidclient -m purge  http://mail.google.com/
HTTP/1.0 404 Not Found
Server: squid/2.5.STABLE14
Mime-Version: 1.0
Date: Wed, 15 Aug 2007 09:39:04 GMT
Content-Length: 0

DID NOT WORK
[root@firebox squid]# squidclient -m PURGE http://www.google.lk/
HTTP/1.0 404 Not Found
Server: squid/2.5.STABLE14
Mime-Version: 1.0
Date: Wed, 15 Aug 2007 09:30:38 GMT
Content-Length: 0


WORKED
[root@firebox squid]# squidclient -m PURGE
http://www.lakbima.lk/images/sflag.gif
HTTP/1.0 200 OK
Server: squid/2.5.STABLE14
Mime-Version: 1.0
Date: Wed, 15 Aug 2007 09:27:12 GMT
Content-Length: 0

WORKED
root@firebox squid]# squidclient -m PURGE http://www.lakbima.lk/
HTTP/1.0 200 OK
Server: squid/2.5.STABLE14
Mime-Version: 1.0
Date: Wed, 15 Aug 2007 09:27:22 GMT
Content-Length: 0


My question is why some worked and DID NOT?












I chaned as follows

> Amos
>
>
>


-- 
Thank you
Indunil Jayasooriya

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux