Welcome! Log In Create A New Profile

Advanced

Re: Log $http_x_forwarded_for behind Cisco ACE LB

Edho Arief
March 02, 2012 06:02AM
2012/3/2 Tib1 <nginx-forum@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

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Log $http_x_forwarded_for behind Cisco ACE LB

Tib1 March 02, 2012 05:58AM

Re: Log $http_x_forwarded_for behind Cisco ACE LB

Edho Arief March 02, 2012 06:02AM

Re: Log $http_x_forwarded_for behind Cisco ACE LB

Tib1 March 02, 2012 06:06AM

Re: Log $http_x_forwarded_for behind Cisco ACE LB

Edho Arief March 02, 2012 06:10AM

Re: Log $http_x_forwarded_for behind Cisco ACE LB

Tib1 March 02, 2012 11:26AM

Re: Log $http_x_forwarded_for behind Cisco ACE LB

Tib1 March 02, 2012 11:45AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 255
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready