On 10-04-2012 17:49, Daniel Gruno wrote:
> On 10-04-2012 17:36, Pierre-Rudolf Gerlach wrote:
>> 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"
On 10-04-2012 18:59, Pierre-Rudolf Gerlach wrote:
> I just tried from a fresh checkout of branch 2.4.x (Apache 2.4.3-dev),
> using the shipped default config, and still myothervar is null.
> Same result with tags/2.4.2 ...
>
> Do you confirm you did just create a .htaccess with the content of my
>
On Tue, Apr 10, 2012 at 6:04 PM, Pierre-Rudolf Gerlach
wrote:
> On Tue, Apr 10, 2012 at 5:49 PM, Daniel Gruno wrote:
>> I have tried inputting exactly what you wrote into my configuration, and
>> the output I got was:
>>
>> HTTP/1.1 200 OK
>> ...
>> myvar: value
>> myothervar: othervalue
>>
On Tue, Apr 10, 2012 at 5:49 PM, Daniel Gruno wrote:
> I have tried inputting exactly what you wrote into my configuration, and
> the output I got was:
>
> HTTP/1.1 200 OK
> ...
> myvar: value
> myothervar: othervalue
> Content-Type: text/html
!!!
> So it _should_ work, unless you have some
On 10-04-2012 17:36, Pierre-Rudolf Gerlach wrote:
>
> 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
On Tue, Apr 10, 2012 at 5:25 PM, Daniel Gruno wrote:
> I tested an If-clause on my 2.4 using the following example:
>
> SetEnvIf dummy .* myvar=value
>
> Require all denied
>
>
> And lo and behold, I got access denied, so it should be working as
> intended, provided you fix your type :)
My bad
On 10-04-2012 17:15, Pierre-Rudolf Gerlach wrote:
> Hello,
>
> I have a website hosted in a shared environment, so I only have access
> to a .htaccess file to configure stuff. I'm running on Apache 2.4.1.
>
> I would like to to something like
> - test the user-agent against a regexp and set a vari
Hello,
I have a website hosted in a shared environment, so I only have access
to a .htaccess file to configure stuff. I'm running on Apache 2.4.1.
I would like to to something like
- test the user-agent against a regexp and set a variable according to this
- test if this variable is set and do