tomcat 6 - 如何默认运行2个应用程序?

发布于 2024-12-19 15:28:04 字数 229 浏览 6 评论 0原文

我有2个tomcat应用程序,我想在同一台服务器上运行,是否有可能让tomcat足够聪明,说如果进入域1,默认进入应用程序1,进入域2,默认进入应用程序2?

现在,其中一个应用程序已重命名为“ROOT”,因此无论域如何,它都会获得所有默认流量。

如果不是,我想我需要向框中添加另一个 ip 并运行服务器的 22 个实例?如果我必须走这条路线,如何强制它侦听特定 IP 而不是默认接口?

谢谢 乔尔

I have 2 tomcat apps I want to run on the same server, is it possible to have tomcat be smart enough to say if comes in on domain 1 go to app 1 as default and domain 2, go to app 2 as default?

Right now one of the apps is renamed to be called ROOT so it gets all the default traffic regardless of domain.

If not I guess I need to add another ip to the box and run 22 instances of the server? If I have to go this route, how to I force it to listen on a specific ip instead of the default interface?

thanks
Joel

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

太阳公公是暖光 2024-12-26 15:28:04

您可以使用 tomcat 虚拟主机 来实现此目的。

You can use tomcat virtual hosts for that.

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