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.
Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,253247,253255
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 f
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 ng