This can be done with TOMCAT. It can be a bit confusing at first.
I assuem you are using apache 1.3.x and tomcat 3.2.x
I took all of my virtual domain directives and placed them in the
mod_jk.conf file.
>From there you simply add the information pertinant to tomcat into the
domain directives...

ie:

<VirtualHost 201.28.5.208>
    ServerAdmin [EMAIL PROTECTED]
    DocumentRoot /usr/local/tomcat/webapps/somedomain
    ServerName www.somedomain.com
    ErrorLog logs/somedomain/error_log
    CustomLog logs/somedomain/access_log common
    JkMount /*.jsp ajp13
    JkMount /servlet/* ajp13
</VirtualHost>

Then I modified my /usr/local/tomcat/conf/server.xml file for tomcat:

        <Host name="www.somedomain.com" >
           <Context path="" docBase="webapps/somedomain" />
        </Host>
as the last entry before the end context manager tag (</ContextManager>)

In my experience I have had to stop using the auto generated
"mod_jk.conf-auto". I lose too much control over the configuration. Once I
get the configuration I like, however, I rarely have to change it. So it
works for me.

Hope this helps
Rory




----- Original Message -----
From: "Erick Todd" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 20, 2001 1:37 PM
Subject: Setting up Virtual Hosts


> I currently have many virtual hosts on a server.  I need to set up
> tomcat so that I can serve jsp and regular html/images from the document
> root as set up by the virtual host directive.  I also need to be able to
> access servlets through each site as www.theirdomain.com/servlet for
> each virutalhosted domain.  I would like to not have to put everything
> in the ROOT folder, but still encapsulate different webapps in their own
> directories.
>
> If anyone has any suggestions, or would like clarification of my
> question please email me.
>
> Thanks,
>
> Erick
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to