Dear friends,
I have configured Squid2.5 Stable 11.0 on RHEL4 ES, it was working fine, the configuration file is given below:
http_port 8080
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 4000 MB
cache_replacement_policy heap LFUDA
memory_replacement_policy heap LFUDA
cache_dir diskd /cache 8192 16 256 Q1=64 Q2=72
cache_access_log /var/log/squid/access.log
cache_log /var/log/squid/cache.log
cache_store_log /var/log/squid/store.log
pid_filename /var/run/squid.pid
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
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 Seedling src 192.168.0.0/22
acl spam src 207.210.0.0/255.255.255.0
acl block_url url_regex "/etc/squid/block.list"
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 25 110
acl Safe_ports port 591 # filemaker
acl Safe_ports port 777 # multiling http
acl CONNECT method CONNECT
http_access deny block_url
http_access deny spam
http_access allow Seedling
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access deny CONNECT !SSL_ports
http_access allow localhost
http_access deny all
http_reply_access allow all
icp_access allow all
cache_mgr
navneetverma_cs@sify.com
cache_effective_user squid
cache_effective_group squid
visible_hostname internetserver
coredump_dir /var/spool/squid
I switched to squid2.6.STABLE20 wiht same configuration, but on starting squid system is issuing following error:
2008/11/15 11:27:14| Creating Swap Directories
FATAL: Failed to make swap directory /Cache: (17) File exists
Squid Cache (Version 2.6.STABLE20): Terminated abnormally.
CPU Usage: 0.001 seconds = 0.001 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
FATAL: cache_dir /Cache: (13) Permission denied
Squid Cache (Version 2.6.STABLE20): Terminated abnormally.
CPU Usage: 0.007 seconds = 0.006 user + 0.001 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 0
Drive /Cache has squid:squid owner and 755 permission,
kindly reply me as soon as possible
Regards
Navneet Verma
+91 98290 30324