Re: Using requestheader to insert new header=environmentvariable_value

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

 



On Thu, Feb 23, 2012 at 5:46 PM, Andres Aguado <andriu.one@xxxxxxxxx> wrote:
> Hi all, let me see.
>
> This is the sentence that i'm using now in httpd.conf, following
> document http://httpd.apache.org/docs/current/mod/mod_headers.html
>
> RequestHeader set PF_AUTH_CORP_ID_NEW env=%{PF_AUTH_SUBJECT}e
>
> And this is what is can see in Wireshark
>
> PF_AUTH_CORP_ID_NEW: env=(null)
> PF_AUTH_SUBJECT: a156168
>

Doesn't look right to me. Are you trying to set the header
PF_AUTH_CORP_ID_NEW to the value of the PF_AUTH_SUBJECT environment
variable?

First off, headers shouldn't have underscores, and extension headers
should start with X- (but this probably wouldn't stop it working).
More importantly, you don't seem to be setting a value, but telling it
to only set the header when the PF_AUTH_SUBJECT environment variable
is set.

I think you want this:

RequestHeader set X-PF-Auth-Corp %{PF_AUTH_SUBJECT}e

If you only want the header set when PF_AUTH_SUBJECT has a value:

RequestHeader set X-PF-Auth-Corp %{PF_AUTH_SUBJECT}e env=%{PF_AUTH_SUBJECT}e

Cheers

Tom

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-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