tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Turner, John" <>
Subject RE: Virtual Hosts
Date Fri, 25 Oct 2002 15:03:14 GMT

Glad I could help.  

Check the documentation for the Host container:

...and the documentation for the Context container:

Basically, a default Tomcat install has a single Virtual Host (localhost)
with a single webapp (/examples).  So setup a new Host container that mimics
the one for localhost, and setup a ROOT Context container for your webapp
within the new Host container.

On the Apache side, setup a normal Apache VirtualHost, and in that
VirtualHost container, put two JkMount statements to map *.jsp and /servlet
to ajp13.  In, duplicate the setup you have for
localhost, and change .host to the same name as the virtual host in Apache
and the new Host container in server.xml.

That should get you started.


> -----Original Message-----
> From: Curt LeCaptain []
> Sent: Friday, October 25, 2002 10:50 AM
> To: Tomcat Users List
> Subject: Virtual Hosts
> Okay... so, I've redone my complete Tomcat/Apache setup according to
> instructions on John Turner's website:
> Everything works as it should! :)
> Now... I'm completely baffled as to how to set up a virtual host in
> server.xml, I'm not exactly sure how to setup the elements 
> and such to get
> directories to work.
> IE, I want a virtual host called "" 
> within there, where
> JSP's can be launched from the document root of that site
> (/www/docs/ and servlets can be 
> launched from a folder
> within that directory.  If someone could help me out, or point me in a
> direction to figure this out, please, let me know! :)
> Curt LeCaptain
> --
> To unsubscribe, e-mail:   
> <>
> For additional commands, e-mail: 
> <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message