2010/7/20 André Warnier <a...@ice-sa.com>:
> Elad Dotan wrote:
\>>
>> 1. OS version Solaris 10 (intel)
>> 2. Apache Tomcat/5.5.20
>>
>>
>
> I believe yes, on an application-by-application base, see
> http://tomcat.apache.org/tomcat-5.5-doc/config/context.html#Common_Attributes
> "caseSensitive".
> But read the remark in that box.
>
> What is not so clear to me, is whether this applies even for the upper
> application level (here elad/ELAD). In other words, if you put this in the
> Context for the "elad" application, does Tomcat then know to direct requests
> to "ELAD" to that same application ?
>

That "caseSensitive" attribute in Context is essentially useless. It
does not make a web-application case-insensitive per se, unless your
OS is case-insensitive. It just removes a security check that compares
requested URL and canonical path of a file.

In Tomcat 7 it is removed.

> Basically, I would say that it is not a good idea anyway, because it may
> still bypass some security features of the server, and may make things
> confusing anyway.
>
> It would probably be better to create a dummy webapps/ELAD application,
> which does nothing else but send a redirect response to the browser, to the
> real webapps/elad application.
> Maybe you can use this filter for that purpose :
> http://www.tuckey.org/urlrewrite/
>

Using a filter is the way to go. You can write it yourself, or use urlrewrite.



Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to