squid反向代理

仅供存放个人的配置文件,不要在本版发问。
回复
头像
oneleaf
论坛管理员
帖子: 10228
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04
送出感谢: 7 次
接收感谢: 103 次

squid反向代理

#1

帖子 oneleaf » 2006-12-20 11:25

代码: 全选

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
头像
water2007
帖子: 524
注册时间: 2007-04-23 13:34
送出感谢: 0
接收感谢: 0
联系:

#2

帖子 water2007 » 2007-04-23 14:05

请问具体怎么用,能否详细说明? 俺是菜鸟不懂~~
头像
reshine
帖子: 91
注册时间: 2006-04-29 1:43
送出感谢: 0
接收感谢: 0
联系:

#3

帖子 reshine » 2007-07-15 19:16

代码: 全选

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
回复

回到 “个人配置文件存放点”