'real_ip_header proxy_protocol' don't change the client address

Maxim Dounin mdounin at mdounin.ru
Tue Sep 26 13:57:51 UTC 2017


On Tue, Sep 26, 2017 at 07:02:33AM -0400, fengx wrote:

> I have the setting as follow:
> real_ip_header   proxy_protocol;
> real_ip_recursive on;
> set_real_ip_from;
> 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.

Please provide full configuration you are using for tests.

Maxim Dounin

More information about the nginx mailing list