Log $http_x_forwarded_for behind Cisco ACE LB

Edho Arief edho at myconan.net
Fri Mar 2 11:00:15 UTC 2012

2012/3/2 Tib1 <nginx-forum at nginx.us>:
> Hello !
> I'm new to Nginx.
> I installed Nginx (on Gentoo) instead of Apache behind a Cisco
> LoadBalancer.
> My problem is that the directive $http_x_forwarded_for always write
> local IP of the LoadBalancer instead of Real IP.
> But I have the good IP in the header HTTP_X_FORWARD.

perhaps something like this:

set_real_ip_from load_balancer_ip;
real_ip_header X-Forwarded-For;

ref: http://nginx.org/en/docs/http/ngx_http_realip_module.html

More information about the nginx mailing list