Welcome! Log In Create A New Profile

Advanced

Re: Nginx as Proxy and IP forwarding

March 26, 2010 03:47PM
Hey Curtis,

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;

Regards,
Payam
Subject Author Posted

Nginx as Proxy and IP forwarding

cschiewek March 26, 2010 03:31PM

Re: Nginx as Proxy and IP forwarding

unclepieman March 26, 2010 03:47PM

Re: Nginx as Proxy and IP forwarding

cschiewek March 26, 2010 03:53PM

Re: Nginx as Proxy and IP forwarding

unclepieman March 26, 2010 04:11PM

Re: Nginx as Proxy and IP forwarding

unclepieman March 26, 2010 06:30PM

Re: Nginx as Proxy and IP forwarding

unclepieman March 26, 2010 09:07PM

Re: Nginx as Proxy and IP forwarding

cschiewek March 31, 2010 09:22AM

Re: Nginx as Proxy and IP forwarding

Igor Sysoev March 26, 2010 04:22PM

Re: Nginx as Proxy and IP forwarding

Piotr Sikora March 26, 2010 09:06PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 186
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready