wood burning stoves 2.0*
The moose likes Tomcat and the fly likes How to running multiple Tomcat on one Server. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "How to running multiple Tomcat on one Server." Watch "How to running multiple Tomcat on one Server." New topic
Author

How to running multiple Tomcat on one Server.

Gustavo Siqueira
Ranch Hand

Joined: Jun 15, 2011
Posts: 97

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 ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

You can run many web apps in one instance of Tomcat -- no need to run more than one Tomcat instance.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Gustavo Siqueira
Ranch Hand

Joined: Jun 15, 2011
Posts: 97

Hello,
Thanks you for response!
How do I do ?

Regards,
Gustavo
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60752
    
  65

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).
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Gustavo Siqueira
Ranch Hand

Joined: Jun 15, 2011
Posts: 97

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!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to running multiple Tomcat on one Server.
 
Similar Threads
Eclipse - debugging servlets
Uploading a file from localhost in windows to sever runnig in Linux
Why does getCodeBase return null?
Is Tomcat an application server?
Jboss port no.