How to configure Tomcat for case-insensitive URL?

I need the url for CASE-INSENSITIVE in Tomcat. I mean, when I write in the address bar of the browser, for example, "http: //localhost/index.htm" is not equal to 'http: //localhost/INDEX.htm', and then I get an error because of this page (INDEX.htm) no. How can I configure Tomcat6 for a case-insensitive URL? Thanks you

+6
source share
2 answers

This is possible in Tomcat 6 and earlier, but is not recommended . Refer to the Link from the apache documentation. Find caseSensitive . Default is true

+2
source

Much depends on whether you use Tomcat or Apache to render HTML. You can configure Apache 2.4 to render HTML and delegate Tomcat JSP. In this case, you can configure Apache as case insensitive. See link :

Typically, jsp pages link to links, so the developer controls the case of the URL.

0
source

Source: https://habr.com/ru/post/922267/


All Articles