具有 mod_proxy 和 ROOT Web 应用程序的 Tomcat 管理器
我们的应用程序在 Tomcat6 中运行,并且我们通过 mod_proxy 代理从 Apache 到 Tomcat 的所有请求。该代理配置如下所示:
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
<Location />
Order deny,allow
Allow from all
</Location>
我们的应用程序也以 ROOT 身份部署。我认为这在尝试访问 /manager URL 时会导致问题,但我不是 100% 确定,也不清楚如何验证这一点。谁能给我一些关于如何解决这个问题的指示?我想使用管理器应用程序从詹金斯进行远程部署。
Our application runs in Tomcat6 and we're proxying all requests from Apache to Tomcat via mod_proxy. that proxy config looks like:
ProxyPass / http://localhost:8080/
ProxyPassReverse / http://localhost:8080/
<Location />
Order deny,allow
Allow from all
</Location>
Our application is also deployed as ROOT. I think that this is causing issues when attempting to get to the /manager URL but I'm not 100% sure and unclear on how I can verify this. Can anyone give me some pointers on how to resolve this? I'd like to use the manager app for remote deployments from jenkins.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
该配置会将所有流量路由到 Tomcat,包括对 /manager 的请求。确认这一点的方法是查看 Tomcat 的访问日志,该日志应该显示与 httpd 的访问日志相同的请求。
That configuration will route all traffic to Tomcat, including requests to /manager. The way to confirm this is to look at Tomcat's access log that should show the same requests as httpd's access log.
尝试 http://localhost/manager/html
它应该在两个端口上都可以工作。
Try http:// localhost/manager/html
It should work on both ports.