I already switched my default port from 8080 to 80, but here's a problem: I need to also be able to manage port 8000, too.
Current ports are: 8080, 80. How do I map a new port (8000) to a new webapp?
Tomcat – Manage multiple ports with Apache Tomcat
apache-2.2httpporttomcaturi
Related Topic
- Apache VirtualHosts – Declaring Multiple Ports for the Same VirtualHosts
- Hiding non-standard ports in the address bar
- Security – Why does Django’s dev server use port 8000 by default
- Tomcat – Apache / Tomcat port information
- Tomcat – How to get port redirects for two Servers running on same server
- Domain – Multiple Domains Single Tomcat 7 – Apache Mod_proxy
Best Answer
You can setup Tomcat so that it will listen on multiple ports, without having to setup 2 instances, simply edit the
conf/server.xml
configuration file and add a new connector for the port you want. For example if you have a connector like that:Add this to that file as well:
Make sure it's redirected to the appropriate location.
References