Setting environment variable on apache

This is a discussion on Setting environment variable on apache within the Apache Web Server forums, part of the Web Server and Related Forums category; We want to set an environment variable with the same value of a cookie. I think something of this SetEnvIf ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-30-2007
sandro.calandrino@tiscali.it
 
Posts: n/a
Default 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

  #2 (permalink)  
Old 08-30-2007
phantom
 
Posts: n/a
Default Re: Setting environment variable on apache

<sandro.calandrino@tiscali.it> wrote in message
news:1188472606.687016.7360@w3g2000hsg.googlegroup s.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?


  #3 (permalink)  
Old 08-30-2007
sandro.calandrino@tiscali.it
 
Posts: n/a
Default Re: Setting environment variable on apache

Our Apache is 2.0.50

On 30 Ago, 13:40, "phantom" <nob...@blueyonder.invalid> wrote:
> <sandro.calandr...@tiscali.it> wrote in message
>
> news:1188472606.687016.7360@w3g2000hsg.googlegroup s.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?


  #4 (permalink)  
Old 08-30-2007
phantom
 
Posts: n/a
Default Re: Setting environment variable on apache

<sandro.calandrino@tiscali.it> wrote in message
news:1188476333.471495.38000@50g2000hsm.googlegrou ps.com...
> Our Apache is 2.0.50
>
> On 30 Ago, 13:40, "phantom" <nob...@blueyonder.invalid> wrote:
>> <sandro.calandr...@tiscali.it> wrote in message
>>
>> news:1188472606.687016.7360@w3g2000hsg.googlegroup s.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....html#setenvif
"Since version 2.0.51 Apache will recognize occurrences of $1..$9 within
value"



  #5 (permalink)  
Old 08-30-2007
sandro.calandrino@tiscali.it
 
Posts: n/a
Default 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...@blueyonder.invalid> wrote:
> <sandro.calandr...@tiscali.it> wrote in message
>
> news:1188476333.471495.38000@50g2000hsm.googlegrou ps.com...
>
>
>
> > Our Apache is 2.0.50

>
> > On 30 Ago, 13:40, "phantom" <nob...@blueyonder.invalid> wrote:
> >> <sandro.calandr...@tiscali.it> wrote in message

>
> >>news:1188472606.687016.7360@w3g2000hsg.googlegro ups.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#setenvif
> "Since version 2.0.51 Apache will recognize occurrences of $1..$9 within
> value"



 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 11:42 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0