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_at_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_at_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_at_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
Received on Fri Sep 05 2008 - 07:45:44 MDT
This archive was generated by hypermail 2.2.0 : Fri Sep 05 2008 - 12:00:02 MDT