tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tauzell, Dave" <>
Subject RE: Access application without giving port number and context root
Date Mon, 16 Nov 2015 15:17:29 GMT
If you want to have multiple applications running on the same tomcat but each has a URL that
hides this you need to use a reverse proxy server.

End User   ----> Reverse Proxy (NGINX for example )   ------------------------------------->
  App 1
   ------------------------------------->  http://app.server:7832/foo
  ------------------------------------->  http://app.server:7832/bar

This is more complicated to setup but has the benefit of being able to move the tomcat instance
around (a different port or server, for example) without the End User needed to change the
URL they use.

If you don't want to run and manage a new process there are some java based reverse proxies
that I think you could run on the Tomcat server itself:
  You won't be able to hide the port with these however.


-----Original Message-----
From: Kikkeri, Amith []
Sent: Monday, November 16, 2015 9:11 AM
To: Tomcat Users List
Subject: RE: Access application without giving port number and context root

I don’t want to install my application as ROOT.war application. This will make it difficult
if I want to deploy multiple applications in same tomcat instance.
Please suggest.

Amith Kikkeri

-----Original Message-----
From: Konstantin Kolinko []
Sent: Thursday, November 12, 2015 4:17 PM
To: Tomcat Users List
Subject: Re: Access application without giving port number and context root

2015-11-13 0:04 GMT+03:00 Kikkeri, Amith <>:
> Hi..
> I am trying to deploy a web application tomcat 7.0.61 . I have a DNS created and I want
access the application without using port number and context root. Please suggest the best
approach to achieve this.
> I can change the Port in server.xml to default port 80, but I would still need to give
the context root, else it would be redirected to tomcat home page. In PRODUCTION, I would
have a DNS created to access my application and want to avoid port number and context root,
hence want to know the steps and best approach to achieve this. If there are some tutorials/Links,
please share the same.

Both questions are already answered in the FAQ. See HowTo page there and search for "ROOT"

Best regards,
Konstantin Kolinko

To unsubscribe, e-mail:
For additional commands, e-mail:

This e-mail and any files transmitted with it are confidential, may contain sensitive information,
and are intended solely for the use of the individual or entity to whom they are addressed.
If you have received this e-mail in error, please notify the sender by reply e-mail immediately
and destroy all copies of the e-mail and any attachments.
View raw message