Hi Bogus,
Am Donnerstag, 12. Mai 2005 00:52 schrieb Bagus:
Here's a more general question about Tomcat.
I'm used to using apache to set up virtual hosts, but when Tomcat
installed, http://localhost/ now goes to my tomcat installation. So
how does one set up multiple virtual hosts with
On Wed, 11 May 2005, Bagus wrote:
Here's a more general question about Tomcat.
I'm used to using apache to set up virtual hosts, but when Tomcat installed,
http://localhost/ now goes to my tomcat installation. So how does one set up
multiple virtual hosts with Tomcat? Is it in the
Bagus,
Each virtual host is a host element in server.xml. The service (e.g.
Catalina) has connectors to the ports for incoming requests. The engine in
that service sorts out the requests for a particular virtual host based on
the name attribute of the hosts. Any which don't match go to the
Host name=www.site1.com appBase=/export/home/webroot/site1
Context path= docBase=/export/home/webroot/site1/ROOT
/Context
/Host
Better yet, make the Context docBase = ROOT so it is relative to the
Host's appBase.
Put JSP in /export/home/webroot/site1/ROOT. Put WEB-INF in