If you running Haproxy and your are trying to get the correct REMOTE_ADDR
We had to switch our load balancing from TCP to HTTP
In order to support the xforward header.
Along with nginx real ip module
http://wiki.nginx.org/HttpRealIpModule
The xforward on earlier haproxies does not support tcp or keepalived.
it only work under http. this has changed on latest haproxy like the
beta version 1.53
One Reply to “Haproxy + Varnish + Nginx = real IP problem”