tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ilya Kazakevich" <>
Subject RE: forward request by changing the port in request url
Date Thu, 13 Jun 2013 22:38:01 GMT
What is "request for application"? How would any software know this request
is for abc app?
You should use different URLs (servlet contexts) or different domain names. 

Then you may install nginx or apache or squid or something else that would
forward your requests to the following tomcats. But you need to configure
tomcat valve to store remote_addr.
I will give you an example for nginx and domain names.

Say, your DNS zone is "" You create 2 subdomains
"" and "" both with same IP (A record).
You install nginx on it listening port 80. You configure it to pass requests
for to localhost:8080 and requests for to

You open browser and navigate to Nginx accepts your request
and makes request to localhost:8080 where tomcat with app abc sits. Tomcat
answers to nginx and it forwards it to you.

That is pretty common solution.

Ilya Kazakevich,
JetBrains Inc
"Develop with pleasure!"

>-----Original Message-----
>From: Anil Goyal -X (anigoyal - Aricent Technologies at Cisco)
>Sent: Thursday, June 13, 2013 10:00 PM
>To: Tomcat Users List
>Subject: forward request by changing the port in request url
>i have two service running under tomcat. One service is default i.e.
>on port 8080 and 8443 second service is catalina_new on port 8081 and 8444.
>i have application abc.war deployed in webapps_new service which is
>running on port 8081. This application is not there in webapps.
>i want if any request coming on port 8080 for application abc, it is
>to port 8081.(same for ssl port 8443->8444) Is there any way to do the

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

View raw message