Try something like this ...

NameVirtualHost  172.16.24.99
<VirtualHost schmoopy1>
   DocumentRoot "/usr/local/schmoopy1/docs"
   ServerName schmoopy1.joedog.org
   ServerAlias schmoopy1

   JkMount /*.jsp sometomcat
</VirtualHost>

<VirtualHost schmoopy2>
   DocumentRoot "/home/schmoopy2/stuff"
   ServerName schmoopy2.joedog.org
   ServerAlias schmoopy2

   JkMount /*.jsp anothertomcat
</VirtualHost>


Anthony Milbourne wrote:
> Hi
> 
> I know this question was asked in Feb but it didn't seem to get a full reply
> back then - so I'm asking again.
> 
> I have one instanve of Apache 1.3 talking over mod_jk to one instance of
> Tomcat 4.0.4.  Apache has 2 virtualhosts set up for the 2 webapps deployed
> on Tomcat.  Both virtualhosts need to have the webapps mapped to the root
> url.
> 
> Currently I am using directives like:
> 
> JkMount /app1/*.jsp ajp13
> 
> but this mounts the webapp under the /app1 url.  I can't make app1 the
> Tomcat root app as this would also need to be done for app2.  With
> mod_webapp you can mount a given webapp under a given URL - but I haven't
> seen anything like this for mod_jk.  Is it possible with mod_jk or do I have
> to kludge it with an apache alias ?
> 
> Thanks,
> 
>               Anthony.
> 
> PS - sorry if Outlook has filled this post with HTML.
> 
> 
> ***********************************************************************************
> Becta's new 'Ask an Expert' service provides you with the opportunity to consult an 
>online panel of experts for help with a whole range of advice on ICT issues, with a 
>different theme each month.
> The theme for September's 'Ask an Expert' is Technical Enquiries - a specialist 
>panel of experts are available to help you with any technical issues that are 
>worrying you - there are no restrictions on what you can ask. So whether you simply 
>want to know how to connect up your printer, or if you need advice on buying ICT 
>equipment and services, our experts will be on hand to offer advice and guidance.  
>Find out more at:
> http://www.ictadvice.org.uk/expert
> ***********************************************************************************
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 
> 
> 


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to