You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Sreehari Ps <sr...@yahoo.com> on 2011/11/27 06:57:28 UTC

[users@httpd] Regex for LocationMatch Directives


 




 Hi All,

 We are using  <LocationMatch>  for our in house  SSO authentication.
we are  having a requirement for differentiating  same URLs but different parameters using two different <LocationMatch tag.

/admin/check
/admin/check?service=new_request

Can somebody please help us to write regex for the same.
we have already tried regex  like "/admin/check$" but it didnt work.


~Hari

Re: [users@httpd] Regex for LocationMatch Directives

Posted by Eric Covener <co...@gmail.com>.
On Sun, Nov 27, 2011 at 1:57 PM, Sreehari Ps <sr...@yahoo.com> wrote:
>
>
>
>  Hi All,
>  We are using  <LocationMatch>  for our in house  SSO authentication.
> we are  having a requirement for differentiating  same URLs but different
> parameters using two different <LocationMatch tag.
> /admin/check
> /admin/check?service=new_request
> Can somebody please help us to write regex for the same.
> we have already tried regex  like "/admin/check$" but it didnt work.

LocationMatch only compares against the path component of the URL, not
the query string.

Depending on what you're actually trying to do differently, you'll
have to use something that can explicitly act based on the query
string (rewriterule, setenvif)


-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org