Re: <If> test against env variable previously defined by SetEnvIf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Apr 10, 2012 at 5:25 PM, Daniel Gruno <rumble@xxxxxxx> 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-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux