• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple Tomcat Instances on the same box

 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to configure multiple tomcat instances using a single Tomcat code base?
I could not find any document about this.
Thanks.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The main thing is you have to configure server.xml so that the different instances use unique ports.
Bill
 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
I know how to configure server.xml if I use multiple Tomcat instalations.
I don't how to configure multiple instances based on ONE Tomcat install.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64715
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you really need multiple Tomcat instances, or are multiple virtual hosts what you really need?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does that mean you want one JVM to run two instances of Tomcat? Why?
If what you really want is to host two separate and distinct web sites in the same instance, I believe that can be done by configuring server.xml. It is called "virtual hosting" - a google search for "tomcat virtual host" turned up a bunch of references.
Bill
 
Bruce Jin
Ranch Hand
Posts: 672
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
I will look into multiple virtual hosts. Maybe this is what I need.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic