- 论坛徽章:
- 0
|
,因为不熟,所以想先弄通了,再慢慢调整.还有,我的平台是 win 2003的.好像很少人用win的.
文件太长,我只取了有用的这部分
- # Squid normally listens to port 3128
- http_port 88 transparent vhost vport
- cache_peer 127.0.0.1 parent 80 0 no-query originserver
- hierarchy_stoplist cgi-bin ?
- acl QUERY urlpath_regex cgi-bin \?
- cache allow QUERY #这个是我加上的.原来是下面一行的.
- #cache deny QUERY
- acl apache rep_header Server ^Apache
- broken_vary_encoding allow apache
- cache_mem 64 MB
- #Default:
- cache_dir ufs c:/squid/var/cache 100 16 256
- # To log the request via syslog specify a filepath of "syslog"
- access_log c:/squid/var/logs/access.log squid
- #
- #Suggested default:
- refresh_pattern ^ftp: 1440 20% 10080
- refresh_pattern ^gopher: 1440 0% 1440
- refresh_pattern . 0 20% 4320
- #Recommended minimum configuration:
- 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
- acl Safe_ports port 80 # http
- acl Safe_ports port 88 # http1
- 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
- # Only allow cachemgr access from localhost
- http_access allow all manager localhost
- http_access deny manager
- # Deny requests to unknown ports
- http_access deny !Safe_ports
- # Deny CONNECT to other than SSL ports
- http_access deny CONNECT !SSL_ports
- #
- # And finally deny all other access to this proxy
- #http_access deny all
- http_access allow all
- # and finally allow by default
- http_reply_access allow all
- #Allow ICP queries from everyone
- icp_access allow all
- #
- # none
- visible_hostname localhost
- # Leave coredumps in the first cache dir
- coredump_dir c:/squid/var/cache
复制代码
因为机器是在使用中的,所以只能先用88端口来测试,我想这个应该不影响.
反向配置是参照你的这篇 http://bbs.chinaunix.net/viewthread.php?tid=798564&extra=page%3D1
[ 本帖最后由 hss202 于 2007-1-10 10:02 编辑 ] |
|