You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "David S. Soleno" <ds...@infoprise.com> on 2002/08/16 19:50:30 UTC

dynamic webapp deployment and mod_jk

Looking through the Apache + Tomcat configuration examples we see how to
configure Apache to serve static files from its root directory and
forward to Tomcat if the request matches one of the registered context
paths.

Our problem occurs from the fact that our system allows for webapps to
be deployed and undeployed dynamically, which means the list of context
paths that require forwarding changes.  While we don't mind restarting
Tomcat when this happens but we don't want to restart Apache.

The list of directories that contains static files for Apache to serve
is constant so it seems what we need is a way to configure Apache to
redirect all requests to Tomcat EXCEPT those that match the list of
context paths.

Does anyone know how to achieve this?


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: dynamic webapp deployment and mod_jk

Posted by Glenn Nielsen <gl...@mail.more.net>.
For mod_jk 1.2 you can use JkAutoAlias to automatically server static
pages for any web application context, even new ones which get added.

Here is an example for the apache httpd.conf:

JkAutoAlias /usr/local/tomcat/webapps

JkMount /*.jsp ajp13
JkMount /*/servlet/ ajp13

Regards,

Glenn

David S. Soleno wrote:
> Looking through the Apache + Tomcat configuration examples we see how to
> configure Apache to serve static files from its root directory and
> forward to Tomcat if the request matches one of the registered context
> paths.
> 
> Our problem occurs from the fact that our system allows for webapps to
> be deployed and undeployed dynamically, which means the list of context
> paths that require forwarding changes.  While we don't mind restarting
> Tomcat when this happens but we don't want to restart Apache.
> 
> The list of directories that contains static files for Apache to serve
> is constant so it seems what we need is a way to configure Apache to
> redirect all requests to Tomcat EXCEPT those that match the list of
> context paths.
> 
> Does anyone know how to achieve this?
> 
> 
> -- 
> To unsubscribe, e-mail:   
> <ma...@jakarta.apache.org>
> For additional commands, e-mail: 
> <ma...@jakarta.apache.org>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>