Welcome! Log In Create A New Profile

Advanced

Re: x-forwarded-for and two nginx instances + apache

Boyko Yordanov
June 14, 2011 04:24AM
Solved! I was (wrongly) overwriting the x-real-ip and x-forwarded-for headers with the second nginx.

Boyko

On Jun 13, 2011, at 6:09 PM, Boyko Yordanov wrote:

> Hi there,
>
> I'm running two nginx instances in-front of Apache. Trying to pass visitors real-ip address to apache.
>
> In normal cases (with one nginx instance in-front of Apache) I'm using:
>
> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
>
> and mod_rpaf on apache to handle the X-Forwarded-For header.
>
> How do I proceed with two nginx instances where the first one should pass $remote_addr to the second one, which should pass it to Apache?
>
> Thanks!
>
> Boyko

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

x-forwarded-for and two nginx instances + apache

Boyko Yordanov June 13, 2011 11:12AM

Re: x-forwarded-for and two nginx instances + apache

Boyko Yordanov June 14, 2011 04:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 353
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