Welcome! Log In Create A New Profile


Reverse proxy using x-forwarded-for to back-end server with single visitor real wan IP

Posted by hugomo 
Hello all,

We are using Nginx to be a reverse proxy server to backend web server.
since need to log the visitor real wan IP address.

<pre> X-Forwarded-For: client, proxy1, proxy2</pre>

We only want to log the client wan IP and not pass the proxy1 , proxy2 ip address to backend web server

We tried configure as below, but not working.
proxy_set_header Forwarded $http_x_forwarded_for;

Any suggestion?
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 98
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready