nginx not setting REMOTE_ADDR properly?

Abhishek Singh abhishek.rhce at
Thu Mar 5 06:06:18 MSK 2009

Use "$http_x_forwarded_for" to log client real ip address.

On Thu, Mar 5, 2009 at 8:22 AM, Mohammad Kolahdouzan <mohammad_ysm at
> wrote:

> My nginx is getting requests through a (NetScaler) load balancer, and
> $remote_addr is returning the load balancer's IP and not the real user's IP
> (which the load balancer sets as REMOTE_ADDR in the header). Any other
> attribute I should use to get the real user's IP?
> -M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list