httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Morse <remo...@partners.org>
Subject Re: [users@httpd] Why doesn't LocationMatch look at the QUERY string (Apache 2.0.48)?
Date Tue, 24 Feb 2004 21:24:34 GMT
On 24 Feb 2004, at 04:20 PM, Joshua Slive wrote:

> On Tue, 24 Feb 2004, Richard Morse wrote:
>> <LocationMatch "cgi_name.*cal=cal1.*">
>> 	require user user1 user2 user3
>>
>> <LocationMatch "cgi_name.*cal=cal2.*">
>> 	require user diffuser1 diffuser2 diffuser3
>
> I haven't tried this, but you could go for something like
>
> RewriteEngine On
> RewriteCond %{QUERY_STRING} cal=cal1
> RewriteRule /path/to/cgi_name /path/to/cgi_name/group1
> RewriteCond %{QUERY_STRING} cal=cal2
> RewriteRule /path/to/cgi_name /path/to/cgi_name/group2
>
> <Location /path/to/cgi_name/group1>
> require user user1 user2 user3
> </Location>
> <Location /path/to/cgi_name/group2>
> require user diffuser1 diffuser2 diffuser3
> </Location>
>
> That uses the fact that you can tag extra "PATH_INFO" to the end of a 
> cgi
> script.
>
> You would need to make a few modifications to that to assure it is 
> secure
> (like being more restrictive in the RewriteCond regular expression).

Thanks!  I'll need to look at this and see if I can make it work...

Ricky


---------------------------------------------------------------------
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


Mime
View raw message