Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

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

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

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>