具有 mod_proxy 和 ROOT Web 应用程序的 Tomcat 管理器

发布于 2025-01-03 11:56:13 字数 398 浏览 8 评论 0原文

我们的应用程序在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

街角卖回忆 2025-01-10 11:56:13

该配置会将所有流量路由到 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.

满地尘埃落定 2025-01-10 11:56:13

尝试 http://localhost/manager/html

它应该在两个端口上都可以工作。

Try http:// localhost/manager/html

It should work on both ports.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文