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 ------- Additional Comments From [EMAIL PROTECTED] 2004-06-29 08:09 ------- That's pretty unfortunate. I might choose to disagree about your terminology since the mod_rewrite page classifies REMOTE_ADDR as a "server-variable" <http://httpd.apache.org/docs-2.0/mod/mod_rewrite.html#rewritecond> Just for the benefit of anyone else who ever needs to do the same thing, you can do this by adding the following lines inside of your <Proxy *></Proxy> block using mod_headers and mod_rewrite: RewriteEngine On RewriteCond %{REMOTE_ADDR} ^(.*) RewriteRule ^.* - [env=MY_REMOTE_ADDR:%1] RequestHeader set X-Forwarded-For "%{MY_REMOTE_ADDR}e" --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
