免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5262 | 回复: 14
打印 上一主题 下一主题

[网络管理] SQUID 出现的怪问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-18 11:05 |只看该作者 |倒序浏览
在FC上面装了SQUDI2。6打算做反向代理。。报错如下:
2007/08/18 10:55:25| parseConfigFile: line 4374 unrecognized: 'httpd_accel_host 10.0.0.11'
2007/08/18 10:55:25| parseConfigFile: line 4375 unrecognized: 'httpd_accel_port 80'
2007/08/18 10:55:25| parseConfigFile: line 4376 unrecognized: 'httpd_accel-single_host on'
2007/08/18 10:55:25| parseConfigFile: line 4377 unrecognized: 'httpd_accel_uses_host_header off'
上面的错误。在做透明代理的时候就出来过我怎么就这样命苦呀。。。最后是用了trans什么的解决的。。但是现在要指定内部的WEB服务器。。。没有'http_accel_host 10.0.0.11'这句上不行的 。。。请高手指点呀!!

[ 本帖最后由 wuguang1023 于 2007-8-18 11:07 编辑 ]

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
2 [报告]
发表于 2007-08-18 11:28 |只看该作者
SQUID2.6,已经不需要这么麻烦了。
直接在这句后加一个,
http_port 3128 transparent

老版本的那4句就可以不要了。

论坛徽章:
0
3 [报告]
发表于 2007-08-18 12:10 |只看该作者
那我的内部WEB服务IP地址怎么设置呀
但是现在要指定内部的WEB服务器。。。没有'http_accel_host 10.0.0.11'这句上不行的

论坛徽章:
0
4 [报告]
发表于 2007-08-18 13:52 |只看该作者
原帖由 wuguang1023 于 2007-8-18 12:10 发表
那我的内部WEB服务IP地址怎么设置呀
但是现在要指定内部的WEB服务器。。。没有'http_accel_host 10.0.0.11'这句上不行的


squid 2.6 的 reverse proxy ?

  1. cache_peer 10.0.0.11 parent 80 0 originserver proxy-only no-query
复制代码


--

论坛徽章:
0
5 [报告]
发表于 2007-08-18 16:02 |只看该作者
2007/08/18 15:57:40| parseConfigFile: line 610 unrecognized: '  server in the .edu domain.  Prefixing the domain name'
2007/08/18 15:57:40| parseConfigFile: line 2861 unrecognized: ' If you want Squid to run with a specific GID regardless of'
启动的时候又出来上面这两行。。。。cache_peer 10.0.0.11 parent 80 0 originserver proxy-only no-query能解释一下吗。要是反向代理多个呢怎么写

论坛徽章:
0
6 [报告]
发表于 2007-08-18 16:08 |只看该作者
原帖由 wuguang1023 于 2007-8-18 16:02 发表
2007/08/18 15:57:40| parseConfigFile: line 610 unrecognized: '  server in the .edu domain.  Prefixing the domain name'
2007/08/18 15:57:40| parseConfigFile: line 2861 unrecognized: ' If you want ...


多個 ? 不同主機名稱嗎 ?


  1. cache_peer 10.0.0.1 parent 80 0 originserver proxy-only no-query
  2. cache_peer 10.0.0.2 parent 80 0 originserver proxy-only no-query

  3. cache_peer_domain 10.0.0.1  web1.server.com
  4. cache_peer_domain 10.0.0.2  web2.server.com

复制代码


詳細部份建議你看 squid guide/manual

--

[ 本帖最后由 kenduest 于 2007-8-18 16:10 编辑 ]

论坛徽章:
0
7 [报告]
发表于 2007-08-18 16:24 |只看该作者
是不是这样可以代理多个WEB服务器cache_peer sib1.foo.net         multicast   3128  3130  [proxy-only]

论坛徽章:
0
8 [报告]
发表于 2007-08-18 16:47 |只看该作者
If you want Squid to run with a specific GID regardless of怎么还是这样呀。。。我把组的属性都给squid 组中了去了

论坛徽章:
0
9 [报告]
发表于 2007-08-18 18:50 |只看该作者
弱弱的问问。。。。要实现反向代理是不是还要在再加上 什么权限的控制呀

论坛徽章:
0
10 [报告]
发表于 2007-08-18 19:08 |只看该作者
原帖由 wuguang1023 于 2007-8-18 16:47 发表 2007/08/18 15:57:40| parseConfigFile: line 610 unrecognized: '  server in the .edu domain.  Prefixing the domain name'
2007/08/18 15:57:40| parseConfigFile: line 2861 unrecognized: ' If you want Squid to run with a specific GID regardless of'




不就是原本註解而已,為何你要把註解的 # 去掉呢 ?

#  TAG: cache_effective_group
#       If you want Squid to run with a specific GID regardless of
#       the group memberships of the effective user then set this
#       to the group (or GID) you want Squid to run as. When set
#       all other group privileges of the effective user is ignored
#       and only this GID is effective. If Squid is not started as
#       root the user starting Squid must be member of the specified
#       group.
#cache_effective_group squid

#  TAG: cache_peer_domain
#       Use to limit the domains for which a neighbor cache will be
#       queried.  Usage:
#
#       cache_peer_domain cache-host domain [domain ...]
#       cache_peer_domain cache-host !domain
#
#       For example, specifying
#
#               cache_peer_domain parent.foo.net        .edu
#
#       has the effect such that UDP query packets are sent to
#       'bigserver' only when the requested object exists on a
#       server in the .edu domain.  Prefixing the domain name
#       with '!' means the cache will be queried for objects
#       NOT in that domain.

建議您實在要好好看清楚錯誤訊息告知你的行數內容。

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

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP