httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <>
Subject Re: [users@httpd] Regex for LocationMatch Directives
Date Sun, 27 Nov 2011 06:07:16 GMT
On Sun, Nov 27, 2011 at 1:57 PM, Sreehari Ps <> 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

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message