Apache <LocationMatch> regEx field
Are you really sure that your problem is with the LocationMatch directive? All your examples seem perfectly valid to me. I suspect that you are barking up the wrong tree here.
Filip Dupanović
A colorful individual apt in the use of technology for social progress; exerting passion for people—hardly ever flabbergasted by anyone's occasional demotion from rationale; oft loves sharing great new comedic material in the ongoing joke… Feel free to make the best use of snippets I post, just be careful! Thank you 🙇: 3D5R7qtd7RR1qrc6JokiNSRbSit5Yg671h
Updated on August 12, 2022Comments
-
Filip Dupanović over 1 year
I can't seem to set regex correctly for the directive.
The syntax is:
<LocationMatch regex> ... </LocationMatch>
I've tried many of the following to no avail:
<LocationMatch "^/(admin-media|connect|css|downloads|images|images-web|js)/.+$"> <LocationMatch "^/(admin-media|connect|css|downloads|images|images-web|js)/.+"> <LocationMatch "/(admin-media|connect|css|downloads|images|images-web|js)/.+$"> <LocationMatch "/(admin-media|connect|css|downloads|images|images-web|js)/.">
Basically, I'm trying to override my default handler to None for addresses that match http://mysite/css/anything, but with no luck!
I could try setting up <Location "/admin">, and so forth, but that's just bloating
-
innaM almost 15 yearsThe syntax kRON is using works for me. And the docs are pretty clear on this.
-
Filip Dupanović almost 15 yearsyour right, I was barking up the wrong tree! I hade two v-host entries that really look alike, I was editing the handler for one app and testing it out on a completely different one and it never worked!
-
sleepy_keita almost 11 years
mod_rewrite
has nothing to do with<LocationMatch>