This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Get Programming with Java (MEAP only) and have Peggy Fisher on-line!
See this thread for details.
Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
Bartenders:
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

How to running multiple Tomcat on one Server.  RSS feed

 
Ranch Hand
Posts: 97
C++ Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have a VPS running a Tomcat, that host a site. I would like of hosting more sites in the same server.
It's possible ?
 
Marshal
Posts: 67200
169
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can run many web apps in one instance of Tomcat -- no need to run more than one Tomcat instance.
 
Gustavo Siqueira
Ranch Hand
Posts: 97
C++ Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
Thanks you for response!
How do I do ?

Regards,
Gustavo
 
Bear Bibeault
Marshal
Posts: 67200
169
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The easiest way is to simply drop the war files for the web apps into Tomcat's webapps folder.

For more complex configurations see the Tomcat documentation which is part of the download (and is one of the web apps shipped with Tomcat).
 
Bartender
Posts: 20153
104
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Note that there is a difference between running multiple sites (hosts) and running multiple apps for a site.

It's trivial to deploy multiple apps in Tomcat. Do as Bear said and drop their WAR files into the Tomcat webapps folder.

To run multiple sites, you'll need to customize the server.xml file, however. The Tomcat documentation details such things.
 
Gustavo Siqueira
Ranch Hand
Posts: 97
C++ Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I would like of thank to everyone for response!

I have solved by following the steps this video:

http://goo.gl/veide


Thanks you!
 
Brace yourself while corporate america tries to sell us its things. Some day they will chill and use tiny ads.
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!