apache使用proxypass连接tomcat 的一个问题 error(120006)

本文记录了一次Apache通过ProxyPass连接多个Tomcat时遇到的问题及解决方案。当使用特定端口时,出现读取响应失败错误。最终通过将AJP端口从8009更改为大于8010的端口解决了该问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

apache使用proxypass连接tomcat 的一个问题,apache的error log片段如下

 

我使用apache管理了多个tomcat,每个tomcat都使用不同的端口,其他网站都可以正常访问,但是今天新增了一个就出现这个问题,非常奇怪

 

[Wed Mar 09 11:19:50 2011] [error] ajp_read_header: ajp_ilink_receive failed
[Wed Mar 09 11:19:50 2011] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (localhost)
[Wed Mar 09 11:19:53 2011] [error] (70014)End of file found: ajp_ilink_receive() can't receive header
[Wed Mar 09 11:19:53 2011] [error] ajp_read_header: ajp_ilink_receive failed
[Wed Mar 09 11:19:53 2011] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (localhost)
[Wed Mar 09 11:19:53 2011] [error] (70014)End of file found: ajp_ilink_receive() can't receive header
[Wed Mar 09 11:19:53 2011] [error] ajp_read_header: ajp_ilink_receive failed
[Wed Mar 09 11:19:53 2011] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (localhost)
[Wed Mar 09 11:19:54 2011] [error] (70014)End of file found: ajp_ilink_receive() can't receive header
[Wed Mar 09 11:19:54 2011] [error] ajp_read_header: ajp_ilink_receive failed
 在网上搜了很多方法,都是不能解决问题,后来经过排查,发现和 ajp的端口有关系,原来使用的是8009,修改为大于8010的端口即可,问题解决了,但是不知道原因,希望对遇到相同问题的朋友们有帮助,或者有人知道原因,请分享一下
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值