'real_ip_header proxy_protocol' don't change the client address

fengx nginx-forum at forum.nginx.org
Tue Sep 26 11:02:33 UTC 2017

I have the setting as follow:

real_ip_header   proxy_protocol;
real_ip_recursive on;

For example, when I send request to nginx from, 
$proxy_protocol_addr prints, which is the original client, but
$remote_addr prints which is our proxy.

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,276542,276543#msg-276543

More information about the nginx mailing list