[squid-users]Problems with caching

From: villari matteo fac. ing. delle telecomunicazioni <villari@dont-contact.us>
Date: Tue, 3 May 2005 17:25:50 +0200

Hi.
I'm learning to use squid.I have this problem: I have to configure squid to
cache a webserver running on a machine with ip 192.168.11.224:8180. squid runs
on another machine with ip 192.168.11.233. my config file is:

http_port 80
http_port 8180
icp_port 0
htcp_port 0
hierarchy_stoplist cgi-bin ?
#acl QUERY urlpath_regex cgi-bin \?
#no_cache deny QUERY
cache_dir ufs /usr/local/squid//var/cache 100 16 256
cache_access_log /usr/local/squid//var/logs/access.log
cache_log /usr/local/squid//var/logs/cache.log
cache_store_log /usr/local/squid//var/logs/store.log
log_mime_hdrs on
useragent_log /usr/local/squid/var/logs/useragent.log
debug_options ALL,2
auth_param basic children 5
auth_param basic realm Squid proxy-caching web server
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off
request_header_max_size 100 KB
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern . 100 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 !Safe_ports
http_access allow all
http_reply_access allow all
icp_access allow all
reply_header_max_size 100 KB
cache_effective_user villari
visible_hostname Villari
httpd_accel_host 192.168.11.224
httpd_accel_port 8180
httpd_accel_single_host on
# httpd_accel_with_proxy off
httpd_accel_uses_host_header on
snmp_port 0
coredump_dir /usr/local/squid//var/cache

I get entry like these in my store.log file

1115130108.793 RELEASE -1 FFFFFFFF AB022F5CFC21892204D62A6426BEB6C8 200
1115130699 1115130699 0 text/html -1/30433 GET
http://192.168.11.233:8180/jetspeed/media-type/html/user/anon/page/default.psml
1115130108.802 RELEASE -1 FFFFFFFF 9EE2FAF53F130D002880CC65F617BEB0 304
1115130699 -1 -1 unknown -1/0 GET
http://192.168.11.233:8180/images/RCA/page-zoom.gif
1115130108.817 RELEASE -1 FFFFFFFF 113D5B5637E980ACFEC5287E845C8430 304
1115130699 -1 -1 unknown -1/0 GET
http://192.168.11.233:8180/images/RCA/log_ca.gif
1115130108.819 RELEASE -1 FFFFFFFF 73401CD516305814F26C457357989A9B 304
1115130699 -1 -1 unknown -1/0 GET
http://192.168.11.233:8180/images/RCA/log_un-eu.gif
1115130108.846 RELEASE -1 FFFFFFFF 40DF5000B78CFCCB15AFC3C6C63CAC72 304
1115130699 -1 -1 unknown -1/0 GET
http://192.168.11.233:8180/images/RCA/log_soc-inf.gif

and like these in my access.log file

1115130108.819 5 192.168.11.243 TCP_MISS/304 245 GET
http://192.168.11.233:8180/images/RCA/log_un-eu.gif - DIRECT/192.168.11.224 -
[Accept: */*\r\nReferer:
http://192.168.11.233:8180/jetspeed/media-type/html/user/anon/page/default.psml\r\nAccept-Language:
it\r\nAccept-Encoding: gzip, deflate\r\nIf-Modified-Since: Thu, 21 Apr 2005
15:20:26 GMT; length=722\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0;
Windows NT 5.1; SV1; .NET CLR 1.1.4322)\r\nHost:
192.168.11.233:8180\r\nConnection: Keep-Alive\r\nCookie:
JSESSIONID=F14AD9E137961761DCD68C050EDFC64D.tomcat1\r\n] [HTTP/1.1 304 Not
Modified\r\nX-Powered-By: Servlet 2.4; Tomcat-5.0.28/JBoss-3.2.6 (build:
CVSTag=JBoss_3_2_6 date=200410140106)\r\nDate: Tue, 03 May 2005 14:31:39
GMT\r\nServer: Apache-Coyote/1.1\r\nConnection: Keep-Alive\r\n\r]
1115130108.846 26 192.168.11.243 TCP_MISS/304 245 GET
http://192.168.11.233:8180/images/RCA/log_soc-inf.gif - DIRECT/192.168.11.224 -
[Accept: */*\r\nReferer:
http://192.168.11.233:8180/jetspeed/media-type/html/user/anon/page/default.psml\r\nAccept-Language:
it\r\nAccept-Encoding: gzip, deflate\r\nIf-Modified-Since: Thu, 21 Apr 2005
15:20:26 GMT; length=1536\r\nUser-Agent: Mozilla/4.0 (compatible; MSIE 6.0;
Windows NT 5.1; SV1; .NET CLR 1.1.4322)\r\nHost:
192.168.11.233:8180\r\nConnection: Keep-Alive\r\nCookie:
JSESSIONID=F14AD9E137961761DCD68C050EDFC64D.tomcat1\r\n] [HTTP/1.1 304 Not
Modified\r\nX-Powered-By: Servlet 2.4; Tomcat-5.0.28/JBoss-3.2.6 (build:
CVSTag=JBoss_3_2_6 date=200410140106)\r\nDate: Tue, 03 May 2005 14:31:39
GMT\r\nServer: Apache-Coyote/1.1\r\nConnection: Keep-Alive\r\n\r]

As You can see i have problems in caching psml pages and other.
My question is : is my conf file "completely" wrong to store the whole dynamic
and static contents of my webserver? and, is it posiible to use cached object
even if webserver is down temporarily?
Sorry if i missed something but i'm relly newbie. Thank you anyway, Matteo

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
Received on Tue May 03 2005 - 09:24:46 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Jun 01 2005 - 12:00:02 MDT