httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 29856] New: - RequestHeader directive does not expand env vars for mod_proxy
Date Tue, 29 Jun 2004 06:44:40 GMT
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: bugs@httpd.apache.org
        ReportedBy: jlawson-apache@bovine.net


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: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message