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?
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?