Setting environment variable on apache

We want to set an environment variable with the same value of a
cookie. I think something of this

SetEnvIf Cookie ^SSOUser* my_cookie=$1
RequestHeader add MyHeader1 %{my_cookie}e

but it dosen't work.

Thanks,
Sandro
sandro.calandrino [ Do, 30 August 2007 13:16 ] [ ID #1808807 ]

Re: Setting environment variable on apache

<sandro.calandrino [at] tiscali.it> wrote in message
news:1188472606.687016.7360 [at] w3g2000hsg.googlegroups.com...
> We want to set an environment variable with the same value of a
> cookie. I think something of this
>
> SetEnvIf Cookie ^SSOUser* my_cookie=$1
> RequestHeader add MyHeader1 %{my_cookie}e
>
> but it dosen't work.
>

what version of apache are you running?
phantom [ Do, 30 August 2007 13:40 ] [ ID #1808808 ]

Re: Setting environment variable on apache

Our Apache is 2.0.50

On 30 Ago, 13:40, "phantom" <nob... [at] blueyonder.invalid> wrote:
> <sandro.calandr... [at] tiscali.it> wrote in message
>
> news:1188472606.687016.7360 [at] w3g2000hsg.googlegroups.com...
>
> > We want to set an environment variable with the same value of a
> > cookie. I think something of this
>
> > SetEnvIf Cookie ^SSOUser* my_cookie=$1
> > RequestHeader add MyHeader1 %{my_cookie}e
>
> > but it dosen't work.
>
> what version of apache are you running?
sandro.calandrino [ Do, 30 August 2007 14:18 ] [ ID #1808810 ]

Re: Setting environment variable on apache

<sandro.calandrino [at] tiscali.it> wrote in message
news:1188476333.471495.38000 [at] 50g2000hsm.googlegroups.com...
> Our Apache is 2.0.50
>
> On 30 Ago, 13:40, "phantom" <nob... [at] blueyonder.invalid> wrote:
>> <sandro.calandr... [at] tiscali.it> wrote in message
>>
>> news:1188472606.687016.7360 [at] w3g2000hsg.googlegroups.com...
>>
>> > We want to set an environment variable with the same value of a
>> > cookie. I think something of this
>>
>> > SetEnvIf Cookie ^SSOUser* my_cookie=$1
>> > RequestHeader add MyHeader1 %{my_cookie}e
>>
>> > but it dosen't work.
>>
>> what version of apache are you running?
>

Your apache is too old -
http://httpd.apache.org/docs/2.2/mod/mod_setenvif.html#seten vif
"Since version 2.0.51 Apache will recognize occurrences of $1..$9 within
value"
phantom [ Do, 30 August 2007 14:27 ] [ ID #1808811 ]

Re: Setting environment variable on apache

We are upgrading our Apache Web Server to 2.0.58.
Can you confirm that our instrunctions are correct?
And if we have to set the value of MyHeader1 with the same value of an
other RequestHeader variable can we use these instruction?

Thank you very much!!! :-D

On 30 Ago, 14:27, "phantom" <nob... [at] blueyonder.invalid> wrote:
> <sandro.calandr... [at] tiscali.it> wrote in message
>
> news:1188476333.471495.38000 [at] 50g2000hsm.googlegroups.com...
>
>
>
> > Our Apache is 2.0.50
>
> > On 30 Ago, 13:40, "phantom" <nob... [at] blueyonder.invalid> wrote:
> >> <sandro.calandr... [at] tiscali.it> wrote in message
>
> >>news:1188472606.687016.7360 [at] w3g2000hsg.googlegroups.com...
>
> >> > We want to set an environment variable with the same value of a
> >> > cookie. I think something of this
>
> >> > SetEnvIf Cookie ^SSOUser* my_cookie=$1
> >> > RequestHeader add MyHeader1 %{my_cookie}e
>
> >> > but it dosen't work.
>
> >> what version of apache are you running?
>
> Your apache is too old -http://httpd.apache.org/docs/2.2/mod/mod_setenvif.html#sete nvif
> "Since version 2.0.51 Apache will recognize occurrences of $1..$9 within
> value"
sandro.calandrino [ Do, 30 August 2007 14:43 ] [ ID #1808812 ]
Webserver » alt.apache.configuration » Setting environment variable on apache

Vorheriges Thema: getting user's public_html directories served up
Nächstes Thema: <newbie> what is apache and tomcat?