I am running multiple instance of tomcat on my linux machine. so there are more than one connector ports for different instance like 8080,8081,8082. I want to remove port number from URL.
For example :-
Current url : - www.sushant.com:8081/
Needed :-www.sushant.com/
please suggest me how can i do this.
Thanks.
You should consider using a proxy on your server. There is a really good tutorial at apache.org, using an Apache Web Server.
http://tomcat.apache.org/tomcat-7.0-doc/proxy-howto.html
This enables you to connect to your server via port 80, which is not printed in the url bar of your browser.
I saw answer above and struggled a bit, so thought of putting up an example since I was on ubuntu, so I had to change
apache2.conf
file in/etc/apache2/
You can find yourapache2.conf
file orhttpd.conf
as per your OSI added following rules -
So, now it works both with and without the port.