On Thu, 6 Sep 2001, Giuliano Carlini wrote:
> Date: Thu, 06 Sep 2001 12:08:28 -0700
> From: Giuliano Carlini <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Tomcat 4, mod_webapp extension mapping
>
> Hi,
>
> Under Tomcat 3.2 I can do a "JkMount /*.xml" to forward all -
> and only - requests for xml files to Tomcat.
>
> How can I do this with Tomcat 4.0?
>
> Thanks,
>
> Giuliano
>
The "all" part is easy -- the "only" part is more interesting.
When you are using mod_webapp, the current code forwards *all* requests
under the specified directory name to Tomcat. However, the design goal is
that the connector will look at the web.xml file, and forward *only* those
requests that are subject to a servlet mapping, a filter mapping, or a
security constraint. Thus, requests for *.xml will be automatically
forwarded if you are running Cocoon (which has a servlet mapping for
"*.xml") but would not be forwarded otherwise.
In this way, the web server will still serve all the static content that
it can, but Tomcat will get involved wherever the application declares
that it needs to be involved.
Craig