On Thu, Feb 23, 2012 at 5:46 PM, Andres Aguado <andriu....@gmail.com> 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-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to