Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Case-insensitive Location

I am using VisualSVN Server that installs an Apache server.

In the below example

    <Location /MyIISWebSite>
      ProxyPass https://my-domain.com:8443/MyIISWebSite
      ProxyPassReverse https://my-domain.com:8443/MyIISWebSite
    </Location> 

how do I make the

    <Location /MyIISWebSite >

to be case insensitive in order to match all combinations (like myiiswebsite, MYIISWEBSITE, ...) ?

like image 614
leoinfo Avatar asked Jul 06 '11 17:07

leoinfo


People also ask

Are directories case sensitive?

Standard behavior: Windows file system treats file and directory names as case-insensitive.

Is nginx location case sensitive?

6. NGINX location RegEx Case Sensitive Match. The modifier ~ in the following location block results in a case sensitive regular expression match but doesn't stop searching for a better match.

What is not case sensitive?

Anything that is not case-sensitive means that any uppercase or lowercase character can be entered. For example, the Windows command line or MS-DOS is not case-sensitive, however, the Linux command line is case sensitive.


1 Answers

Use LocationMatch with a case-insensitive regex modifier, like so:

<LocationMatch "(?i)/MyIISWebSite">
...
</LocationMatch>
like image 80
Rob DiCiuccio Avatar answered Oct 08 '22 14:10

Rob DiCiuccio