tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier>
Subject Re: Tomcat, iis connector and case sensitivity
Date Mon, 16 Jun 2008 10:13:13 GMT

Luis Villa wrote:
> Hello all,
> I'm trying to add redirect rules to the tomcat connector. I've been reading
> Tomcat connector documentation, and what I've done till the moment is this:
> 1.- I've created a with this content:
>       /myapplication/=/MyApplication/
>       /MYAPPLICATION/=/MyApplication/
>       /MYAP/=/MyApplication/
> 2.- I've added this to
>        # Full path to the file
> rewrite_rule_file=c:\apache-tomcat-6.0.14\conf\
> ... but it only works with /MyApplication/ (the name in webapps in tomcat).
> Any other form (myapplication, MYAPPLICATION or MYAP) returns a 404 error.
It might be a good idea to provide a bit of detail about your 
configuration, it would help the people trying to help you.
One can kind of guess from the above that you are running under Windows, 
with Tomcat 6.0.14, and are using an isapi connector, thus from IIS or 
the like, but it requires some effort.

I don't really know that precise environment, but I'll take a pot-shot 
anyway : is it not that your rewrite rules are being run too late, and 
they never see requests with /myapplication/, /MYAPPLICATION/ or /MYAP/ ?
Presumably, before they get to the isapi connector, requests go to the 
front-end HTTPD server.  If that one does not know that it should 
redirect /myapplication/, /MYAPPLICATION/ or /MYAP/ to the connector, 
then the connector never gets to see them.
Instead, the HTTPD server will try to serve those requests itself, and 
since it doesn't have those documents, respond with 404.
Does the 404 error page look like a Tomcat page, or else ?


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message