"It is recommended not to store the web applications's
files in Tomcat's distribution directory tree. For example, having
a separate directory makes Tomcat upgrades easier since it won't
overwrite configuration files like server.xml. And since this
tutorial shows how to run two Tomcat instances concurrently on a
single Linux server, two separate directories are needed anyway. It
should be noted here that it's also possible to run multiple web
applications per Tomcat JVM instance. This HOWTO shows the creation
and configuration of one web application for each Tomcat instance.
"Setting up Directories and Files
"In the following example I setup the first Tomcat JVM instance
under the base directory /opt/tomcat-instance/sales.example.com.
It's a good practice to name the base directory after the site
name, in this example sales.example.com.
"Creating a new base directory for a new instance requires the
creation and copying of various directories and configuration
files. Execute the following commands as root:"
Some of the products that appear on this site are from companies from which QuinStreet receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. QuinStreet does not include all companies or all types of products available in the marketplace.