Nginx real_ip_recursive

Maxim Dounin mdounin at mdounin.ru
Mon Sep 15 19:14:48 UTC 2014


Hello!

On Mon, Sep 15, 2014 at 11:41:49AM -0400, ianjoneill wrote:

> Thanks for your explanation. If I were to later add load balancers in front
> of my proxy server, would the $remote_addr IP be correct (i.e. the client
> IP) or would it be the IP of the load balancer?

By default it will be the IP of the load balancer.  If your load 
balancer will be able to provide correct IP via X-Forwarded-For or 
other header, the realip module can be used to instruct nginx to 
use the address provided instead.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list