Case-insensitive Location

leoinfo picture leoinfo · Jul 6, 2011 · Viewed 9k times · Source

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, ...) ?

Answer

Rob DiCiuccio picture Rob DiCiuccio · Aug 25, 2011

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

<LocationMatch "(?i)/MyIISWebSite">
...
</LocationMatch>