【发布时间】:2017-01-14 13:59:11
【问题描述】:
我有 Apache 2.4 将 *:80 流量转发到我唯一的 Tomcat 7.0 webapp (Guacamole),如下所示:
ProxyPreserveHost On
ProxyRequests off
ProxyPass / http://localhost:8080/guacamole/
ProxyPassReverse / http:/localhost:8080/guacamole/
ProxyPassReverseCookiePath / http://localhost:8080/guacamole
这可行,除非我退出 web 应用程序,否则我会收到 Tomcat 报告的以下 404:
HTTP Status 404 - /guacamole/guacamole/index.xhtml
根据我的阅读,我有几个选项,包括使用 ProxyPass/redirect、rewrite、VirtualHost 和符号链接。其中一些选项在 Apache 和 Tomcat 配置下都是可能的。我糊涂了。确保/guacamole/guacamole/index.xhtml(或*)请求到达/guacamole/index.xhtml的最佳方法是什么?
(如果真正的根本原因在 Guacamole webapp 代码中,我不知道 Java。)
【问题讨论】: