nginx not setting REMOTE_ADDR properly?

Mohammad Kolahdouzan mohammad_ysm at
Thu Mar 5 05:52:50 MSK 2009

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?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list