分页: 1 / 1

squid反向代理

发表于 : 2006-12-20 11:25
oneleaf

代码: 全选

http_port 80 
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
no_cache deny QUERY
cache_mem 64 MB
hosts_file /etc/hosts
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 SSL_ports port 443 563      # https, snews
acl SSL_ports port 873          # rsync
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 Safe_ports port 631         # cups
acl Safe_ports port 873         # rsync
acl Safe_ports port 901         # SWAT
acl purge method PURGE
acl CONNECT method CONNECT
http_access allow all
http_reply_access allow all
icp_access allow all
httpd_accel_host 127.0.0.1
httpd_accel_port 8080
httpd_accel_single_host on
httpd_accel_with_proxy on
httpd_accel_uses_host_header on
coredump_dir /var/spool/squid

发表于 : 2007-04-23 14:05
water2007
请问具体怎么用,能否详细说明? 俺是菜鸟不懂~~

发表于 : 2007-07-15 19:16
reshine

代码: 全选

httpd_accel_host 127.0.0.1
httpd_accel_port 8080
httpd_accel_single_host on
httpd_accel_with_proxy on
httpd_accel_uses_host_header on 
试了一下,这几行不能用

代码: 全选

2007/07/15 19:07:46| parseConfigFile: line 35 unrecognized: 'httpd_accel_host 127.0.0.1'
2007/07/15 19:07:46| parseConfigFile: line 36 unrecognized: 'httpd_accel_port 8080'
2007/07/15 19:07:46| parseConfigFile: line 37 unrecognized: 'httpd_accel_single_host on'
2007/07/15 19:07:46| parseConfigFile: line 38 unrecognized: 'httpd_accel_with_proxy on'
2007/07/15 19:07:46| parseConfigFile: line 39 unrecognized: 'httpd_accel_uses_host_header on'
用的是源里的squid