Apache LocationMatch not working

3.2k Views Asked by At

I have a the following directive inside of a <VitrualHost/> directive:

<LocationMatch "api/.*">
.....
</LocationMatch>

I am trying to hit my server with the following URL:

http://localhost/blah/api/blah?....

The stuff inside of my <LocationMatch> directive isn't being match. Maybe I don't understand how <LocationMatch> actually works. I would expect this to look at the URL and compare it with what is inside of the "" of <LocationMatch>.

Edit:

The strange thing is this matches when I end the URL with ../api/

0

There are 0 best solutions below