Hello, 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 "example.com." You create 2 subdomains "abc.example.com" and "def.example.com" both with same IP (A record). You install nginx on it listening port 80. You configure it to pass requests for abc.example.com to localhost:8080 and requests for def.example.com to 8081. You open browser and navigate to abc.example.com. 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, Developer JetBrains Inc http://www.jetbrains.com "Develop with pleasure!" >-----Original Message----- >From: Anil Goyal -X (anigoyal - Aricent Technologies at Cisco) >[mailto:anigo...@cisco.com] >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. catalina >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 forwarded >to port 8081.(same for ssl port 8443->8444) Is there any way to do the same. > >Thanks >Anil --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org