Use &quot;$http_x_forwarded_for&quot; 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">&lt;<a href="mailto:mohammad_ysm@yahoo.com">mohammad_ysm@yahoo.com</a>&gt;</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&#39;s IP and not the real user&#39;s IP (which the load balancer sets as REMOTE_ADDR in the header). Any other attribute I should use to get the real user&#39;s IP?<br>
<br>-M<br><br></div><br>

      </div></blockquote></div><br><br clear="all"><br>