Welcome! Log In Create A New Profile

Advanced

Re: Does "set_real_ip_from" support IPv4 only?

Maxim Dounin
October 06, 2011 12:06PM
Hello!

On Thu, Oct 06, 2011 at 11:52:46AM -0400, Usu wrote:

> Hi,
>
> I'm confused, I get this error by entering an IPv6 address in the
> set_real_ip_from directive:
>
> nginx: [emerg] "set_real_ip_from" supports IPv4 only in
> /usr/local/nginx/conf/nginx.conf:65
>
> But according to the changelog, that directive should support IPv6 since
> nginx 0.8.22:
>
> Changes with nginx 0.8.22 03 Nov
> 2009
> [...]
> *) Feature: the "set_real_ip_from" directive supports IPv6 addresses
> in
> request headers.
> [...]
>
> My nginx version: 1.0.8
>
> Is the changelog referring to something else or is this a bug?

It supports ipv6 in *request headers* (that is, it will accept
ipv6 in X-Real-IP/X-Forwarded-For headers), while you are trying to use
ipv6 in set_real_ip_from directive. This is not (yet) supported.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Does "set_real_ip_from" support IPv4 only?

Usu October 06, 2011 11:52AM

Re: Does "set_real_ip_from" support IPv4 only?

Maxim Dounin October 06, 2011 12:06PM

Re: Does "set_real_ip_from" support IPv4 only?

Usu October 06, 2011 12:13PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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