On Thu, Jun 18, 2009 at 8:23 AM, Edho P Arief <span dir="ltr"><<a href="mailto:edhoprima@gmail.com">edhoprima@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Thu, Jun 18, 2009 at 10:10 PM, Kevin<br>
Castiglione<<a href="mailto:kevincastiglione@gmail.com">kevincastiglione@gmail.com</a>> wrote:<br>
> 2009/6/18 Igor Sysoev <<a href="mailto:is@rambler-co.ru">is@rambler-co.ru</a>><br>
>><br>
</div><div class="im">>> Also, this<br>
>><br>
>> if ($http_x_forwarded_for ~ "(?:^|,)\s*(\d+\.\d+\.\d+\.\d+)\s*$") {<br>
>> set $addr $1;<br>
>> }<br>
>><br>
>> fastcgi_param REMOTE_ADDR $addr;<br>
>><br>
>> means that anyone may forge his address.<br>
><br>
> without this my web app gets client ip address as the ip address of the<br>
> machine running nginx and not the actual client.<br>
><br>
<br>
</div>why not<br>
<div class="im"><br>
fastcgi_param REMOTE_ADDR $remote_addr;</div></blockquote><div>this works great!!!<br>thanks <br></div></div><br>