On Tue, Apr 10, 2012 at 5:25 PM, Daniel Gruno <rum...@cord.dk> wrote:
> I tested an If-clause on my 2.4 using the following example:
>
> SetEnvIf dummy .* myvar=value
> <If "env('myvar') == 'value'">
>  Require all denied
> </If>
>
> And lo and behold, I got access denied, so it should be working as
> intended, provided you fix your type :)

My bad for the missing quote, I changed the values in the exemple
without re-testing it, sorry.

You example works for a deny. However, if I slightly modify it,
replacing "Require all denied" by a variable setting, like this

SetEnvIf dummy .* myvar=value
<If "env('myvar') == 'value'">
 SetEnvIf dummy .* myothervar=othervalue
</If>
Header set myvar %{myvar}e
Header set myothervar %{myothervar}e

I get the problem : "myothervar" is not set. (null in the response
headers). I don't really get what difference it would make ?

Thanks, regards

-- 
Pierre-Rudolf Gerlach

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to