简体   繁体   English

如何在tomcat中部署多个Web应用程序?

[英]How to deploy multiple web apps in tomcat?

I have two web jsp+servlet applications which i have deployed in tomcat server. 我有两个web jsp + servlet应用程序,我已经部署在tomcat服务器中。 I access both apps using below urls 我使用以下网址访问这两个应用

http://www.example.com:8100/admin 
http://www.example.com:8100/client

I dont want to have "admin" and "client" portion in url I want to access both apps by just http://www.example.com:8100/ Is there any way to do that? 我不想在网址中有“管理员”和“客户端”部分我想通过http://www.example.com访问这两个应用程序 8100 /有什么方法可以做到这一点吗?

Is there any way that i can do it by using sub domain? 有什么办法可以通过使用子域来实现吗?

Tomcat instance will not be able to distinguish between "admin" and "client" portions if you do not have separate URLs for each of them. 如果您没有单独的URL,Tomcat实例将无法区分“admin”和“client”部分。 Hence not possible with a single Tomcat instance. 因此,单个Tomcat实例无法实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM