httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <rainer.j...@kippdata.de>
Subject Re: Using mod_rewrite in my authorization module. Need advice.
Date Sat, 06 Feb 2010 17:06:59 GMT
On 04.02.2010 08:56, Kevac Marko wrote:
> On Thu, Feb 4, 2010 at 10:52 AM, Sorin Manolache<sorinm@gmail.com>  wrote:
>> Try to set an apache request note in the authentication instead of
>> dynamically changing the configuration of mod_rewrite.c.
>>
>> Thus, you'll have something like
>>
>> RewriteRule /url %{ENV:destination}
>>
>> The configuration would be always the same, just the value of the
>> "destination" request note changes dynamically, depending on the
>> authentication.
>
> Hmmmm... Interesting. Are you sure that this works?
>
> Can I do something like RewriteRule %{ENV:source} %{ENV:destination} ?

You can check environment variables in RewriteCond and set them in 
RewriteRule.

Regards,

Rainer

Mime
View raw message