Results 1 to 1 of 1
I have a requirement to put LDAP authentication for few URL mentioned below
http://server1.example.com/testing/abc.cgi?edit=10
http://server1.example.com/testing/xyz.cgi?edit=12
http://server1.example.com/testing/bob.cgi?edit=11
http://server1.example.com/testing/abc.cgi?del=100
http://server1.example.com/testing/xyz.cgi?edit=101
http://server1.example.com/testing/bob.cgi?edit=102
and applying below with regular expression
<LocationMatch "/testing/.*\?(edit|del)=.*">
authenticaiton defined here
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 05-08-2009 #1Linux Newbie
- Join Date
- Jan 2008
- Posts
- 114
How to use LocationMatch with regex in apache
I have a requirement to put LDAP authentication for few URL mentioned below
http://server1.example.com/testing/abc.cgi?edit=10
http://server1.example.com/testing/xyz.cgi?edit=12
http://server1.example.com/testing/bob.cgi?edit=11
http://server1.example.com/testing/abc.cgi?del=100
http://server1.example.com/testing/xyz.cgi?edit=101
http://server1.example.com/testing/bob.cgi?edit=102
and applying below with regular expression
<LocationMatch "/testing/.*\?(edit|del)=.*">
authenticaiton defined here
</LocationMatch>
But it is not working, please help.
Switched to Scripting


Reply With Quote
