With mod_jk, you can specify a wildcard in your mount points:
JkMount /*.jsp ajp13
I'm not sure how you do this with Jserv, though. Have you checked the docs?
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-apache-howto.
html
--jeff
----- Original Message -----
From: "Jon Shoberg" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, May 17, 2001 4:12 PM
Subject: [Apa/TomC] Context switching in servers ???
> How can I have a directory that serves JSP pages though Apache/Tomcat,
> static .html files though apache, and imaged though apache. I don't want
> EVERYTHING going though tomcat. Here is the directory structure ...
>
>
> Any thoughts ???? Here is some imfo ....
>
> http://myapp.localhost (same as http://localhost/myapp)
> |
> |- index.jsp (served by apache/tomcat.. this is working)
> |- static.html (when requested served by apache only .. need to get
> working)
> |
> +- images (sub-directory)
> |
> |- logo.gif (served by apache only .. need to get working)
>
>
>
>
>
> # Blurb from tomcat.conf which gets included into httpd.conf
> #
> ############################## Context mapping - all requests go to tomcat
>
> ApJServMount /examples /root
> # ApJServMount /myapp /root
>
>
> <VirtualHost myapp.localhost>
> ServerAdmin webmaster@localhost
> DocumentRoot "C:/Program Files/Apache
> Group/jakarta/tomcat/webapps/myapp"
> ServerName myapp.localhost
> ApJServMount / /root
> ErrorLog logs/myapp.localhost-error_log
> CustomLog logs/myapp.localhost-access_log common
> </VirtualHost>
>
>
>
>
>
>
> <!-- Blurb from server.xml to define a named host -->
>
>
> <Host name="myapp.localhost" >
> <Context path=""
> docBase="webapps/myapp"
> crossContext="false"
> debug="0"
> reloadable="true" >
> </Context>
> </Host>
>