Setting remote addr to contents of header

Paul Dlug paul.dlug at
Thu Apr 16 12:37:38 MSD 2009

On Thu, Apr 16, 2009 at 4:20 AM, Maxim Dounin <mdounin at> wrote:
> Hello!
> On Thu, Apr 16, 2009 at 12:52:01AM -0400, Paul Dlug wrote:
>> The realip module only sets the X-Forwarded-For header based on an
>> upstream header. It doesn't set the value of the client IP in the
>> nginx request object which is what is needed to get directives like
>> allow/deny to work.
> No, you are wrong.  Try re-reading docs.

Thanks, I got it, it was my original mis-reading of the docs. I hadn't
realized that set_real_ip_from had to be set at all times.


More information about the nginx mailing list