Tomcat - virtualhosting - name / ip / port - based

Posted by lisak on Stack Overflow See other posts from Stack Overflow or by lisak
Published on 2010-05-20T01:44:04Z Indexed on 2010/05/20 1:50 UTC
Read the original article Hit count: 358

Hey,

what are the usage scenarios for these kinds of virtual hosting ?

Name Based - typical tomcat virtual hosting, one HOME instance with many contexts, each as an individual host

IP based / port based - multiple instances of tomcat ( how is it with performance and memory consuption?) running on IP aliases (virtual IPs) for one network adapter, usually behind http apache server that can run name based virtual hostings. Otherwise I can't figure out how would I forward requests in iptables/firewall based on IP address, which is just one. How is IP based virtual hosting done as to Tomcat and multiple instances ?

I'd like to hear some usage scenarios from your experience. How are you running your applications. Cause there are applications having it's own modified classloader and they are developed in a way to run alone withing a tomcat instance. Then there are trivial applications which can run within one instance without problems.

Many thanks

© Stack Overflow or respective owner

Related posts about tomcat

Related posts about virtualhost