Dear All,

In a previous message I mentioned that I am setting up Squid as an accelerator for 
Zope. 
But I omitted to give the details needed by anyone who would have liked to help me, so 
here is a more complete description of my problem.

Squid is running and serving pages, however pages are not being cached. By now, there 
have been over 100,000 pages served, but only 8 objects (images mainly) are in the 
cache. Squid's access.log shows all pages as TCP_MISS:DIRECT, and store.log shows all 
pages with the code RELEASE.

My pages contain no visible headers which might affect caching, but I know that Zope 
can insert such headers.

I am running Squid version 2.5, fronted by Webmin; os is FreeBSD v. 4.3.

Following are all uncommented lines from squid.conf (sorry if it's too much):

http_port 123.45.678.9:80       #not real of course
minimum_object_size 4 KB        #prevent caching of error message (2389 bytes)
emulate_httpd_log on
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern .               0       20%     4320
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443 563     # https, snews
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl CONNECT method CONNECT
http_access deny all            #problem: anonymous requests for port 81 are getting 
through! Why?
http_reply_access allow all
icp_access allow all
httpd_accel_host zope.myserver.com   #redirect this to zope on port 81
httpd_accel_port 81
httpd_accel_uses_host_header on

---

I hope the above will provide some clue about what I am doing wrong!

TIA,

Ken


Reply via email to