I have set up httpd-2.0.46 under Linux to pass off .jsp requests to the mod_jk2 handler (mod_jk 2.0.4). Everything works fine. My static .html and .jsp files happen to lie in the SAME webroot directory, so what I'd like to do is tell Apache to only pass off the .jsp request to mod_jk2 if the .jsp file being asked for exists. One of the reasons I want this is for Apache to spit back Apache-configured 404 messages instead of spitting back Tomcat-produced 404 messages when requests for non-existant .jsp URLs are invoked.

In a nutshell, my httpd.conf and workers2.properties files look like this:

++ httpd.conf ++
================
LoadModule jk2_module modules/mod_jk2.so
# All files, .html and .jsp, are here
DocumentRoot "/opt/web/root"
<Location "/*.jsp">
    JkUriSet atrask ajp13:localhost:8009
</Location>
================

++ workers2.properties ++
=========================
[channel.socket:localhost:8009]
atrask=localhost:8009
=========================


Like I said, everything is working very swell except for a few quirks caused by the fact that .jsp requests are sent off to Tomcat directly instead of being "sanity-checked" for actual existance. I've spend many hours digging through docs (which there is a lack of) and trying various
tricks. If there were a directive called "Check-file-exists-before-sending-to-mod_jk2" that I could insert in the <Location /> directive I'd be all set. Or at lesat is there a way for Apache to interpret Tomcat 5's error responses and make its own error responses?


- Nerius

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



Reply via email to