Welcome! Log In Create A New Profile

Advanced

Re: Varnish (reverse proxy) + nginx with php and REMOTE_ADDR issue.

Rob Schultz
January 03, 2010 05:06PM
No use
http://wiki.nginx.org/NginxHttpRealIpModule#real_ip_header
put this into either the in the http, server or you location section.

set_real_ip_from 127.0.0.1; (or what ever your varnish ip address is)
real_ip_header X-Forwarded-For;

and just leave it as fastcgi_param REMOTE_ADDR $remote_addr;

V/r,
Rob

On Jan 3, 2010, at 3:50 PM, Piotr Karbowski wrote:

> I saw that but I don't understand how can I use it in fastcgi_parms.
>
> fastcgi_param REMOTE_ADDR $real_ip_header;
>
> This can work?
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://nginx.org/mailman/listinfo/nginx


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

Varnish (reverse proxy) + nginx with php and REMOTE_ADDR issue.

Piotr Karbowski January 03, 2010 03:32PM

Re: Varnish (reverse proxy) + nginx with php and REMOTE_ADDR issue.

Rob Schultz January 03, 2010 03:44PM

Re: Varnish (reverse proxy) + nginx with php and REMOTE_ADDR issue.

Piotr Karbowski January 03, 2010 04:54PM

Re: Varnish (reverse proxy) + nginx with php and REMOTE_ADDR issue.

Rob Schultz January 03, 2010 05:06PM

Re: Varnish (reverse proxy) + nginx with php and REMOTE_ADDR issue.

Piotr Karbowski January 03, 2010 05:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 217
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready