Amazon WS

Nginx show/set real ip address(public) from Amazon ELB Load Balancer address

To make it work, we need to add following lines to nginx configuration file:

real_ip_header X-Forwarded-For;

It makes nginx to trust an X-Forwarded-For header from anyone, 
which makes Real Ip visible on logs and can be used in other programs 
where real ip is required.

You Might Also Like