LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 904|回复: 1

squid透明代理部分加在squid.conf什么位置

[复制链接]
发表于 2006-8-9 18:20:42 | 显示全部楼层 |阅读模式
找了很多关于透明代理的帖子 就没提到需要把相关的配置选项方配置文件的什么位置 请知道的告诉一下 谢谢

我在squid.conf文件中的http_port 3128后面加了如下几段关于透明代理的选项,结果 squid -z的时候报错
httpd_accel_host virtual

httpd_accel_port 80

httpd_accel_with_proxy on

httpd_accel_uses_host_header on

错误代码:
2006/08/09 18:11:55| parseConfigFile: line 74 unrecognized: 'httpd_accel_host virtual'
2006/08/09 18:11:55| parseConfigFile: line 75 unrecognized: 'httpd_accel_port 80'
2006/08/09 18:11:55| parseConfigFile: line 76 unrecognized: 'httpd_accel_with_proxy on'
2006/08/09 18:11:55| parseConfigFile: line 77 unrecognized: 'httpd_accel_uses_host_header on'
Squid Cache (Version 2.6.STABLE2): Terminated abnormally.
CPU Usage: 0.000 seconds = 0.000 user + 0.000 sys
Maximum Resident Size: 0 KB
Page faults with physical i/o: 6
发表于 2006-8-9 20:18:22 | 显示全部楼层
配置文件里面默认有
httpd_accel_port 80
httpd_accel_with_proxy off
httpd_accel_uses_host_header off
所以你重复加了肯定要报错误撒,在配置文件的下面你只要把virtual那句加在httpd_accel_port 80的上面,然后把下面2句的off改成on把#取消掉就可以了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表