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? Posted at Nginx Forum: https://forum.nginx.org/read.php?2,272653,275206#msg-275206 _______________________________________________ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx