atom feed6 messages in ru.sysoev.nginxRe: Keep client ip address
FromSent OnAttachments
Igor SysoevDec 30, 2006 10:25 am 
Aleksandar LazicDec 30, 2006 10:40 am 
Igor SysoevDec 30, 2006 10:44 am 
Guillermo Fernandez CastellanosDec 30, 2006 12:57 pm 
Igor SysoevDec 30, 2006 1:06 pm 
Aleksandar LazicDec 30, 2006 1:09 pm 
Subject:Re: Keep client ip address
From:Aleksandar Lazic (al-n@public.gmane.org)
Date:Dec 30, 2006 1:09:00 pm
List:ru.sysoev.nginx

Hi,

On Sam 30.12.2006 21:57, Guillermo Fernandez Castellanos wrote:

Thanks Aleksandar and Igor for your answers.

Eventually I've removed all references to real_ip, added those lines: proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr;

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ I think this line isn't needed if you use X-Forwarded-For ;-)

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

and defined a new log format for my apache server with %{X-Forwarded-For}i

This is like a standard for apache behind a proxy ;-)

I've been surprised by how quickly I got a (correct and helpful) answer. Again, thanks a lot.

That was also my first positive suprise, that's one of the reason why I like nginx ;-)

Happy new year,

Thanks && also to you ;-)

BR

ALeks