Can a single instance of tomcat run on two different ports. For example say I have one and only one tomcat running, then can I type localhost:8080 & localhost:8181 in browser & got it working?
If yes, please let me know the procedure.
Can a single instance of tomcat run on two different ports. For example say I have one and only one tomcat running, then can I type localhost:8080 & localhost:8181 in browser & got it working?
If yes, please let me know the procedure.
A better solution would be an additional webserver like an apache which redirects to the tomcat server.
You can edit your server.xml to create additional connector elements:
<Connector port="8081"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
debug="0" connectionTimeout="20000"
disableUploadTimeout="true" />
For example.
I might be inclined to address this via NAT or a load balancer however.