Welcome! Log In Create A New Profile

Advanced

Re: remote_addr not set using x-real-ip

Francis Daly
January 26, 2015 03:12PM
On Mon, Jan 26, 2015 at 09:29:17PM +0800, ron ramos wrote:

Hi there,

> I would just like to check what mistake i did on implementing real-ip
> module.

> real_ip_recursive on;

That says "tell me the last untrusted address from the list".

http://nginx.org/r/real_ip_recursive

> set_real_ip_from 0.0.0.0/0;

But that says "no address on the list is untrusted".

So nginx will do something else -- probably tell you the first address
from the list. It's no wronger than anything else, given what you have
configured it to do.

Either turn off recursive, or configure your trusted addresses correctly.

f
--
Francis Daly francis@daoine.org

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

remote_addr not set using x-real-ip

ron ramos January 26, 2015 08:32AM

Re: remote_addr not set using x-real-ip

Francis Daly January 26, 2015 03:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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