Thanks for your explanation. If I were to later add load balancers in front of my proxy server, would the $remote_addr IP be correct (i.e. the client IP) or would it be the IP of the load balancer? Thanks again for your help.by ianjoneill - Nginx Mailing List - English
Thanks for your reply. If I uncomment that line, the X-Forwarded-For header contains all of the IP addresses, as shown below: $ sudo /usr/sbin/tcpdump -i lo -A -s 0 'tcp port 8080 and ( ((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on lo, link-type EN10MB (Ethernet), captby ianjoneill - Nginx Mailing List - English
Hello, I am using nginx to proxy connections to a server I have written in Java, which serves connections on port 8080. I am trying to use the X-Forwarded-For header to identify the real IP address of a connection, but I am running into difficulties with the nginx setting real_ip_recursive. My nginx config file example_vhost in /etc/nginx/sites-enabled/: server { listenby ianjoneill - Nginx Mailing List - English