Nginx as Proxy and IP forwarding
nginx-forum at nginx.us
Fri Mar 26 22:47:45 MSK 2010
Maybe im misunderstanding your request here but within nginx its very easy to attach the x-forwarded-for value and pass it to the next device/upstream.
All you have to do is set the following variable in your proxy configuration file (or per config if you choose to do it seperatly for different upstreams)
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,68228,68235#msg-68235
More information about the nginx