tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tauzell, Dave" <Dave.Tauz...@surescripts.com>
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://foo.bar/                                            
   ------------------------------------->  http://app.server:7832/foo
                              http://baz/bar/                                            
  ------------------------------------->  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:  http://wiki.apache.org/tomcat/ServletProxy.
  You won't be able to hide the port with these however.

-Dave


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

Hi,
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.

Regards,
Amith Kikkeri

-----Original Message-----
From: Konstantin Kolinko [mailto:knst.kolinko@gmail.com]
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 <amith.kikkeri@aig.com>:
> 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"
(uppercase)

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

B�KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKCB��[��X��ܚX�KK[XZ[
�\�\��][��X��ܚX�P�X�]
�\X�K�ܙ�B��܈Y][ۘ[��[X[��K[XZ[
�\�\��Z[�X�]
�\X�K�ܙ�B�
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.
Mime
View raw message