十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
http://squid.acmeconsulting.it/
成都创新互联公司专注于三亚网站建设服务及定制,我们拥有丰富的企业做网站经验。 热诚为您提供三亚营销型网站建设,三亚网站制作、三亚网页设计、三亚网站官网定制、小程序开发服务,打造三亚网络公司原创品牌,更为您提供三亚网站排名全网营销落地服务。
也可以使用附件中的文件,该配置使用squid-2.7.STABLE8版本
解压到C盘,命名为squid
4.2拷贝mime.conf.default为mime.conf
4.3拷贝cachemgr.conf.default为cachemgr.conf
acl manager proto cache_object
acl all src all
acl localhost src 127.0.0.1/32
acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
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 network
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
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 sex
http_access allow manager localhost
http_access deny manager
http_access deny !Safe_ports
http_access allow CONNECT !SSL_ports
http_access allow localnet
http_access deny all
icp_access allow localnet
icp_access deny all
htcp_access allow localnet
htcp_access deny all
http_port 3128
hierarchy_stoplist cgi-bin ?
cache_dir ufs d:/var/cache 100 16 256
access_log d:/var/logs/access.log squid
cache_log d:/var/logs/cache.log
cache_store_log d:/var/logs/store.log
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern (cgi-bin|\?) 0 0% 0
refresh_pattern . 0 20% 4320
cache_mgr 13560794518@163.com
cache_effective_user squid
cache_effective_group squid
visible_hostname syprox.monitor.greatwall.com.cn
icp_port 3130
coredump_dir d:/var/cache
C:\squid\sbin\squid.exe -z
会在D:\cache下面发现16个目录
以管理员身份运行cmd
C:\squid\sbin\squid.exe -i -n squid_proxy 服务名字为squid_proxy