Hi all,
I apologise if this has been answered previously. I searched but could not find it.
I am running Windows Server 2008 R2.
I would like to run two
Tomcat instances (6.0.x and 7.0.x) Each instance would have multiple sites, each with its own IP address, but all listening on Port 8080.
Is this possible?
For more details, see below:
CURRENT CONFIG (This works fine. We have this sort of configuration set up on multiple website already):
Tomcat 6.0.39
server.xml (key items, not all)
<Server port="8005" shutdown="SHUTDOWN">
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="conf/keystore" keystorePass="password" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
<Engine name="Catalina" defaultHost="localhost">
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> </Host>
<Host name="10.0.0.1" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias>website1.domain.com</Alias> <Context path="" docBase="website1" debug="5" reloadable="true" crossContext="true"/> </Host>
<Host name="10.0.0.2" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias>website2.domain.com</Alias> <Context path="" docBase="website2" debug="5" reloadable="true" crossContext="true"/> </Host>
<Host name="10.0.0.3" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"> <Alias>website3.domain.com</Alias> <Context path="" docBase="website3" debug="5" reloadable="true" crossContext="true"/> </Host>
REQUIRED CONFIG
Tomcat 6.0.39
server.xml (As above)
I'm assuming I will need to add something to the Server Port and Connector Port entries to specify which IP addresses to listen to?
And, possible delete the <host name = localhost ...> line?
Tomcat 7.0.54
server.xml
I'm assuming it will need to have a similar configuration as above, but specifying the new IP addresses (10.0.0.4 and 10.0.0.5)
I will try to do some more research and see if I can scrape together a
test box to try this out on first, but was hoping someone may know this off the top of their heads
As always, I'm more than happy to provide more info if required. Tomcat is not my strong area, so I have possibly forgotten some crucial info.