Case insensitive place

I am using VisualSVN Server which installs Apache server.

In the example below

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

how to do

  <Location /MyIISWebSite > 

be case insensitive to match all combinations (e.g. myiiswebsite, MYIISWEBSITE, ...)?

+4
source share
3 answers

Use LocationMatch with a case-insensitive regular expression modifier, for example:

 <LocationMatch "(?i)/MyIISWebSite"> ... </LocationMatch> 
+4
source

I used:

 <LocationMatch "/(?i:mywebsite)"> Allow from all Satisfy Any </LocationMatch> 

and works on apache 2.2

+3
source

This is a pretty old question. Just post a solution that might be helpful to others.

I use ProxyPassMatch, which is equivalent to ProxyPass, but allows the use of regular expressions.

Consult Apache HTTP Documentation

Example:

ProxyPassMatch (? I) / abc http://mydomain.com/handle-all-variants-of-abc

This will match all combinations: (abc, abC, aBc, Abc, ABc, aBC, AbC, ABC)

0
source

All Articles