配置文件如下:
web服务器内网IP:59.215.224.158 外网IP:58.16.65.183
Squid缓存服务器内网IP:58.16.67.96 外网IP:59.215.224.164
http_port 80 accel vhost vport
cache_peer 59.215.224.158 parent 80 0 originserver
acl manager proto cache_objectacl localhost src 127.0.0.1/32 ::1
acl myip src 59.215.224.164httpd_accel_host localhost 59.215.224.158
httpd_accel_port 80acl to_localhost dst 127.0.0.0/8 0.0.0.0/32 ::1
acl localnet src 10.0.0.0/8 #RFC1918 possible internal network
acl localnet src 172.16.0.0/12 #RFC1918 possible internal network
acl localnet src 192.168.0.0/16 #RFC1918 possible internal networkacl SSL_ports port 443
acl Safe_ports port 80 8080
#httpacl Safe_ports port 21
#ftpacl Safe_ports port 443
#httpsacl CONNECT method CONNECT
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_portshttp_access deny CONNECT !SSL_ports
http_access allow localnet
http_access allow all
cache_dir aufs /data/cache 1024 16 256
cache_mem 128 MBhierarchy_stoplist cgi-bin ?
coredump_dir /var/spool/squidrefresh_pattern ^ftp 1440 20% 10080
refresh_pattern ^gopher 1440 0% 1440
refresh_pattern -i (/cgi-bin/|\?) 0 0& 0
refresh_pattern \.(jpg|png|gif|mp3|xml) 1440 50% 2880 ignore-reload
refresh_pattern . 0 20% 4320
请大神指教,百度了好多还是没解决,谢谢!
编辑回复