Hide the ports in the url of a tomcat application

Posted by S.M.09 on Server Fault See other posts from Server Fault or by S.M.09
Published on 2012-03-29T09:09:30Z Indexed on 2012/03/30 5:31 UTC
Read the original article Hit count: 159

Filed under:
|
|

I have setup tomcat 6 on a server with several different instances which run on different ports

For Eg:

     http://10.XXX.XXX.XXX:8080/myAPP1
     http://10.XXX.XXX.XXX:8088/myAPP2
     http://10.XXX.XXX.XXX:8082/myAPP3

and so on...

These urls are available two the users using these and other applications Now I want to hide the ports on which each of the applications are running...

So that the user could see only something like this

http://10.XXX.XXX.XXX/myAPP1
http://10.XXX.XXX.XXX/myAPP2
http://10.XXX.XXX.XXX/myAPP3

What is needed to be done for this

I have achieved this for one url (i.e. one port) using the firewall rules and redirect the request on HTTP 80 port to the port that tomcat is listening..

But I want such patter to appear for all the urls...

How can I go about this?

Specs

HOST M/C : 64 bit

OS: Linux Redhat

Tomcat : 6.0

© Server Fault or respective owner

Related posts about linux

Related posts about tomcat6