tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: how to make context path case insensitive
Date Mon, 11 Aug 2008 14:40:20 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Persistence,

persistence k wrote:
| Currently my webapp context path is in upper case, and as per the
| requirement we need to make the context path case insensitive
| just as  www.google.com and WWW.GOOgle.COM point to same application. Case
| sensitivity shouldn't be a matter for my context path.
|
| Yes, i  do need users to be able to type in either case initially and
to be
| directed to the same webapp  but instead of deploying multiple
variants of
| the same application, can you suggest me how to create a case insensitive
| context path for my web app.

Without deploying trivial (redirector) applications for all combinations
of case, you'd have to hack the Tomcat source code. Since URLs are
defined to be case-sensitive (except for the hostname in HTTP/S URLs, of
course), there was no reason for Tomcat to allow for this capability.

If you are running Apache httpd in front of Tomcat, you could probably
do this with some use of mod_rewrite.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkigT1MACgkQ9CaO5/Lv0PD37QCfaRNRRxAp6r7nuVqdes39y49X
faEAoJUNxIaoBqZGdAjMS+q5mUSmt8vC
=M6vU
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message