免费注册 查看新帖 |

Chinaunix

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

[proxy] squid apache问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-30 09:28 |只看该作者 |倒序浏览
我在一台服务器上运行squid 以及apache    squid反向代理 cache_peer 指向apache  然后由apache 分发请求到后端的jboss服务器上  这样一切服务都是正常的
但因为想减少这台服务器的负荷  想把apache分离到另外一台服务器上  但当把cache_peer指向到别台的apache的时候  一开始还是正常的 网站访问没有任何问题
但过了3到5分钟以后 就不正常了   网站不能访问  下面是squid上的部分配置
# hostname set
visible_hostname cache01.xxx.com
# (Format: external IP : port)
http_port 202.154.140.12:80 vhost
# for squid 2.6
#cache_peer 10.0.10.1 parent 80 0 no-query originserver (apache在与squid同台时的cache_peer)
cache_peer 10.0.10.2 parent 80 0 no-query originserver (apache在另一台时候的设置 )

其中10.0.10.1是squid服务器的内网卡ip 也是apache监听的ip   10.0.10.2是新的apache服务器的监听端口

是不是squid 与apache 一定要装在一台机器上啊?  分离了apache到另台后 前期正常 过段时间apache进程就会卡住或者停掉  
MEF: phase:URI translate, $s not acceptabler proxy, 10.0.10.1
MEF: phase:access check, $s not acceptabler proxy, 10.0.10.1
MEF: phase:post read request, $s not acceptabler proxy, 10.0.10.1
MEF: phase:access check, $s not acceptabler proxy, 10.0.10.1
MEF: phase:post read request, $s not acceptabler proxy, 10.0.10.1
MEF: phase:access check, $s not acceptabler proxy, 10.0.10.1
MEF: phase:post read request, $s not acceptabler proxy, 10.0.10.1
MEF: phase:access check, $s not acceptabler proxy, 10.0.10.1
MEF: phase:post read request, $s not acceptabler proxy, 10.0.10.1
MEF: phase:access check, $s not acceptabler proxy, 10.0.10.1
MEF: phase:cleanup initial, undo spoof substituted 10.0.10.2 for 10.0.10.1
MEF: phase:post read request, $s not acceptabler proxy, 10.0.10.1
MEF: phase:access check, $s not acceptabler proxy, 10.0.10.1
这是新apache的error_log里的一些可疑信息   
急啊。。高手们 给点思路吧。。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP