Setting remote addr to contents of header
paul.dlug at gmail.com
Thu Apr 16 12:37:38 MSD 2009
On Thu, Apr 16, 2009 at 4:20 AM, Maxim Dounin <mdounin at mdounin.ru> wrote:
> 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