Use "$http_x_forwarded_for" to log client real ip address.<br><br><div class="gmail_quote">On Thu, Mar 5, 2009 at 8:22 AM, Mohammad Kolahdouzan <span dir="ltr"><<a href="mailto:mohammad_ysm@yahoo.com">mohammad_ysm@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"><br>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?<br>
<br>-M<br><br></div><br>
</div></blockquote></div><br><br clear="all"><br>