Forums Register Login

case insensitive context

+Pie Number of slices to send: Send
I'm running IIS 5.0 and Tomcat 5.0.25 on a Win2k server with the ajp13 connector. Requests to http://myserver.com/TEST/ work but requests to http://myserver.com/test/ fail. How can I configure it such that requests to both will work?

I've tried a variety of things including IIS redirects, and settings in the rewrite.properties and uriworkermap.properties but nothing seems to work! Any help would be very much appreciated!
+Pie Number of slices to send: Send
There is no way to set things up so that the context path is case insensitive.

Seems like a rather odd thing to want to do, but you can approximate it by creating mutliple contexts that point to the same web app on disk, each with the different name that you want to use.

Note that this will create separate web apps, and so things like the application context will not be shared.
[ October 04, 2006: Message edited by: Bear Bibeault ]
+Pie Number of slices to send: Send
Oh... you're kidding, right?

Well, the context is actually an acronym which is why it was created uppercase but I know the users are going to mess up the url and type it in lowercase which will get them absolutely nowhere.

I find it a little strange that it is Tomcat that throws the 404 when accessing the lowercase context (e.g. http://myserver.com/test) and not IIS (since Tomcat is only configured for the uppercase url).
+Pie Number of slices to send: Send
IIS is probably the only web/app server out there that doesn't follow the HTTP specs as far as case sensitivity in URLs is concened.
+Pie Number of slices to send: Send
My advice? Acronym or not, make it lowercase.

URLs aren't really the place to worry too much about grammatical-correctness.
[ October 04, 2006: Message edited by: Bear Bibeault ]
This guy is skipping without a rope. At least, that's what this tiny ad said:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1885 times.
Similar Threads
Error 400: Invalid path /main was requested
Can I run IIS and j2ee web servers on the same machine
.htaccess
JSP/ Servlet Post Question
Redirecting context paths in Tomcat 5.5
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:06:53.