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:Igor Sysoev (is-G@public.gmane.org)
Date:Dec 30, 2006 1:06:47 pm
List:ru.sysoev.nginx

On Sat, 30 Dec 2006, Guillermo Fernandez Castellanos wrote:

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; 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

And it works like a charm.

I don't know if changing the log format is the cleanest solution, but for my simple setup mod_rpaf is a bit overkill and the log change just works (kiss).

The mod_rpaf also set a real client address for several Apache modules such as mod_status (/server-status), mod_access (Allow/Deny) and logging module.