DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29856>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=29856

RequestHeader directive does not expand env vars for mod_proxy

           Summary: RequestHeader directive does not expand env vars for
                    mod_proxy
           Product: Apache httpd-2.0
           Version: 2.0.49
          Platform: Other
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: mod_headers
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


I am trying to define the "X-Forwarded-For:" header to be the IP address of the
requesting client when mod_proxy passes a request onto the destination server. 
I would expect that adding the following inside my <Proxy *></Proxy> block would
have that effect:

RequestHeader set X-Forwarded-For "%{REMOTE_ADDR}e"

However this just results in "X-Forwarded-For: (null)" being in the request
headers received by the destination server.  I have tried other variables, such
as "%{PATH}e" with the same result so this leads me to be believe that there is
something inherently wrong with variable expansion.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to