使用mod_proxy_ajp在端口80上破坏tomcat(错误)

Leo*_*Sam 1 apache proxy tomcat ajp

我的tomcat在8080上运行

apache在80上运行

我实现了

<Location />
    ProxyPass ajp://localhost:8080/ retry=0 timeout=30
    ProxyPassReverse ajp://localhost:8080/
       </Location>
Run Code Online (Sandbox Code Playgroud)

我无法通过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)
Run Code Online (Sandbox Code Playgroud)

任何建议解决ajp代理错误

小智 5

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

请查看mod_proxy_ajp用法信息