Welcome! Log In Create A New Profile

Advanced

Re: set_real_ip_from, real_ip_header directive in ngx_http_realip_module

June 29, 2017 09:08AM
if nginx is behind another proxy, that proxy set the X-Forwarded-for header with the real client ip, and the configration of nginx is :

location / {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
real_ip_header X-Forwarded-For;
set_real_ip_from 192.168.0.0/16;
}

whether the real client ip or the address of the proxy will add in the X-Forwarded-For header?
will the value of $remote_addr changes only after real_ip_header directive or at the beginning of the context?
Subject Author Posted

set_real_ip_from,real_ip_header directive in ngx_http_realip_module

Nishikubo Minoru February 27, 2017 08:00PM

Re: set_real_ip_from, real_ip_header directive in ngx_http_realip_module

Maxim Dounin February 28, 2017 08:42AM

Re: set_real_ip_from, real_ip_header directive in ngx_http_realip_module

Nishikubo Minoru February 28, 2017 07:58PM

Re: set_real_ip_from, real_ip_header directive in ngx_http_realip_module

foxgab June 29, 2017 09:08AM

Re: set_real_ip_from, real_ip_header directive in ngx_http_realip_module

Maxim Dounin June 29, 2017 11:34AM

Re: set_real_ip_from, real_ip_header directive in ngx_http_realip_module

foxgab July 03, 2017 04:57AM

Re: set_real_ip_from, real_ip_header directive in ngx_http_realip_module

Maxim Dounin July 03, 2017 09:10AM

Re: set_real_ip_from,real_ip_header directive in ngx_http_realip_module

mohitmehral March 23, 2017 01:45AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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