Search squid archive

RE: squid-3.0.STABLE8 PURGE problem

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

 



Hi all,

I realized where my problem is and found a way out.

Originally I put apache to listen on 127.0.0.1:80.
So when I issue

[root@squid1 ~]# /usr/local/squid-3.0.STABLE8/bin/squidclient -p80 -m PURGE
http://www.example.com/01.jpg

It is actually
[root@squid1 ~]# /usr/local/squid-3.0.STABLE8/bin/squidclient -h127.0.0.1
-p80 -m PURGE http://www.example.com/01.jpg So it comes to apache and
receives the error message from apache httpd.

The modification to squid.conf is:

acl localhost src 127.0.0.1/32
acl myself src 10.20.15.113/32 10.20.15.115/32 acl PURGE method PURGE
http_access allow localhost PURGE http_access allow myself PURGE http_access
deny PURGE http_access allow all

and I issue 

[root@squid1 ~]# /usr/local/squid-3.0.STABLE8/bin/squidclient -h10.20.15.113
-p80 -m PURGE http://www.example.com/01.jpg HTTP/1.0 200 OK
Server: squid/3.0.STABLE8
Mime-Version: 1.0
Date: Fri, 05 Sep 2008 15:55:01 GMT
Content-Length: 0
X-Cache: MISS from squid1.example.com
Via: 1.0 squid1.example.com (squid/3.0.STABLE8)
Connection: close


> -----Original Message-----
> From: xufeng [mailto:xufeng@xxxxxxxxxxx]
> Sent: 2008年9月5日 15:45
> To: 'squid-users@xxxxxxxxxxxxxxx'
> Subject: squid-3.0.STABLE8 PURGE problem
> 
> Hi all,
> 
> I get squid-3.0.STABLE8 working well on centos 5.2 except trying to PURGE
cached
> objects.
> 
> The squid.conf is:
> 
> [root@squid1 ~]# cat /usr/local/squid-3.0.STABLE8/etc/squid.conf | grep -v
> "#" | grep -v "^$"
> acl manager proto cache_object
> acl localhost src 127.0.0.1/32
> acl PURGE method PURGE
> acl CONNECT method CONNECT
> http_access allow manager localhost
> http_access deny manager
> http_access deny CONNECT
> http_access allow localhost PURGE
> http_access deny PURGE
> http_access allow all
> http_port 10.20.15.115:80 vhost vport
> http_port 10.20.15.113:80 vhost vport
> cache_peer 127.0.0.1 parent 80 0 no-query originserver
> hierarchy_stoplist cgi-bin ?
> access_log /usr/local/squid-3.0.STABLE8/var/logs/access.log squid
> refresh_pattern -i \.txt$ 60 90% 1440 reload-into-ims
> refresh_pattern -i \.html$ 60 90% 1440 reload-into-ims
> refresh_pattern -i \.jpg$ 60 90% 1440 reload-into-ims
> refresh_pattern -i \.bmp$ 60 90% 1440 reload-into-ims
> negative_ttl 0
> visible_hostname squid1.example.com
> coredump_dir /usr/local/squid-3.0.STABLE8/var/cache
> 
> when I issue
> 
> [root@squid1 ~]# /usr/local/squid-3.0.STABLE8/bin/squidclient -p80 -m
PURGE
> http://www.example.com/01.jpg
> 
> HTTP/1.1 501 Method Not Implemented
> Date: Fri, 05 Sep 2008 15:15:09 GMT
> Server: Apache/2.2.9 (Unix)
> Allow: GET,HEAD,POST,OPTIONS,TRACE
> Content-Length: 213
> Connection: close
> Content-Type: text/html; charset=iso-8859-1
> 
> <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
> <html><head>
> <title>501 Method Not Implemented</title>
> </head><body>
> <h1>Method Not Implemented</h1>
> <p>PURGE to /01.jpg not supported.<br />
> </p>
> </body></html>
> 
> I compile the squid with
> 
> [root@squid1 ~]# ./configure --prefix=/usr/local/squid-3.0.STABLE8
> --with-large-files --with-filedescriptors=4096 --enable-snmp && make all
&&
> make install
> 
> Can anyone help with the " HTTP/1.1 501 Method Not Implemented" ERROR?
> 
> I remember that the configuration on squid-2.6.STABLE19 works fine.
> 
> Thank you in advance.
> 
> Yours,
> Xu Feng




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

  Powered by Linux