Run two instances of tomcat in different ports

0

I'm trying to run two instances on different ports. We have tested server.xml and created two connectors but they are not created. The port is listening but when I enter from the browser it says that it does not exist

    
asked by CMorillo 13.04.2018 в 12:27
source

1 answer

1

It's simple, you only need to consult the configuration file conf / server.xml and add a new connector for the port you want. For example, if you have a connector like this:

 <Connector port="8080" protocol="HTTP/1.1" 
           connectionTimeout="20000" 
           redirectPort="8443" 
           URIEncoding="UTF-8" />

Simply copy the same code by changing the port. Make a restart and you'll have it.

Source: Here

    
answered by 13.04.2018 в 13:12