使用mod_proxy_ajp在错误的端口80上运行tomcat

时间:2013-05-23 11:55:27

标签: apache tomcat proxy ajp

我的tomcat在8080上运行

apache在80上运行

我实施了

<Location />
    ProxyPass ajp://localhost:8080/ retry=0 timeout=30
    ProxyPassReverse ajp://localhost:8080/
       </Location>

我无法通过apache访问我的java应用程序而且我一直收到错误

[Thu May 23 15:47:33 2013] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (localhost)
[Thu May 23 15:48:15 2013] [error] (70014)End of file found: ajp_ilink_receive() can't receive header
[Thu May 23 15:48:15 2013] [error] ajp_read_header: ajp_ilink_receive failed
[Thu May 23 15:48:15 2013] [error] (120006)APR does not understand this error code: proxy: read response failed from (null) (localhost)

任何建议解决ajp代理错误

1 个答案:

答案 0 :(得分:5)

如果您在端口8009上检查server.xml AJP连接器默认侦听 - 您正尝试将AJP绑定到端口8080上的HTTP连接器。

请参阅mod_proxy_ajp usage information