Setting remote addr to contents of header

Anton Yuzhaninov citrin at
Thu Apr 16 11:38:34 MSD 2009

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.

ngx_http_realip_module override client IP in the nginx request
object based on value from request header.

If allow/deny don't work as need try to check set_real_ip_from and real_ip_header settings.

  Anton Yuzhaninov

More information about the nginx mailing list