Welcome! Log In Create A New Profile

Advanced

Re: realip disabled if header contains port

July 13, 2017 12:28AM
foxgab Wrote:
-------------------------------------------------------
> hello,
>
> i found http_realip_module doesn't work if the realip_header contains
> client port.
> my config is like bellow:
> http {
> real_ip_header X-Real-IP;
> set_real_ip_from 0.0.0.0/0;
> server {...}
> }
>
> the X-Real-IP header in the request is:
> X-Real-IP: 123.123.123.123
>
> but the $remote_addr variable in the log turn out to be the address of
> last hop proxy.
> is anything wrong?

sorry, the X-Real-IP header is like: X-Real-IP: 123.123.123.123:4321
Subject Author Posted

realip disabled if header contains port

foxgab July 13, 2017 12:26AM

Re: realip disabled if header contains port

foxgab July 13, 2017 12:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 121
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready