Has anyone seen any problems with tomcat virtual hosting?
I want to use virtual hosting with Tomcat for allowing multiple hosts to be specified in the server.xml file for future use in an enterprise topology. Has anyone seen any problems with this setup?
I am specifically referring to: http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html
I intend to setup the following:
Public URI
https://rtc.intranet.com:9443/ccm
https://rrc.intranet.com:9443/rm
https://jts.intranet.com:9443/jts
https://rqm.intranet.com:9443/qm
DNS
rtc.intranet.com maps to 101.102.103.104
rrc.intranet.com maps to 101.102.103.105
jts.intranet.com maps to 101.102.103.106
rqm.intranet.com maps to 101.102.103.107
Accepted answer
<Host name="rrc.intranet.com" appBase="rrc-webapps" unpackWARs="true" autoDeploy="true"/>
And create matching directories
+---ccm-webapps
+---ccm.war
+---converter.war
+---rm.war
+---jts-webapps
+---admin.war
+---clmhelp.war
+---jts.war
+---rqm-webapps
+---qm.war
Comments
I also noted that there is a Maxthreads implication of this too. https://jazz.net/forum/questions/91352/is-there-a-limit-to-the-maxthreads-value-for-tomcat-server highlights this issue in general, but as you'll have multiple connector port lines within one Tomcat instance, you would need to be careful with the MaxThreads setting.