我在端口 80 上运行 Apache 2.2.15,并希望在本地主机端口 8983 上代理 servlet 引擎。我在另一台服务器上运行设置,但已转移到 CentOS 6 机器。它不适用于新机器。我的虚拟主机配置:
代理请求关闭 <代理*> 订单拒绝,允许 所有人都允许 </代理> ProxyPass / http://localhost:8983/ ProxyPassReverse / http://localhost:8983/
如果我使用浏览器并直接访问它(并且不通过 Apache 代理),我可以访问端口 8983,但如果我访问/通过 Apache 服务器,则无法连接到它。
我可以将代理的内容更改为http://slashdot.org并且 Slashdot 成功代理(所以我知道它通常能够代理)。
我在 Apache 中打开调试登录,这是事务:
[Sun Apr 22 16:47:04 2012] [debug] mod_proxy_http.c(56): proxy: HTTP: canonicalising URL //localhost:8983/ [Sun Apr 22 16:47:04 2012] [debug] proxy_util.c(1506): [client 184.39.79.7] 代理:http: found worker http://localhost:8983/ for http://localhost:8983/ [Sun Apr 22 16:47:04 2012] [debug] mod_proxy.c(998):运行方案 http 处理程序(尝试 0) [Sun Apr 22 16:47:04 2012] [debug] …