Welcome! Log In Create A New Profile

Advanced

Re: Nginx 1.4 problem

Miguel Clara
May 06, 2013 12:34PM
If this is a linux box you could simple use [::]:80 and it should, by
default, responde to both v4 and v6...


"In Linux by default any IPv6 TCP socket also accepts IPv4 traffic using
the IPv4 to IPv6 mapped address format, i.e., ::ffff:<IPv4 adddress in
dotted decimal notation>. E.g., ::ffff:192.168.0.27 maps the IPv4 address
192.168.0.27 to an IPv6 address.

When you enable the address [::]:80, binding port 80 using IPv6, in the
listen directive, in Linux, by default, the IPv4 port 80 is also enabled.
Meaning that nginx listens for both IPv4 and IPv6 incoming traffic.
Therefore if you erroneously specify also a IPv4 address you'll get an
already bind address error when reloading nginx configuration." (
http://wiki.nginx.org/HttpCoreModule) "

So I guess ipv6only=off should do the same... and it should work.... I can
be 100% sure since I don't have any box with nginx 1.4 + ipv6 yet!


On Mon, May 6, 2013 at 5:19 PM, James Cloos <cloos@jhcloos.com> wrote:

> >>>>> "LT" == Lukas Tribus <luky-37@hotmail.com> writes:
>
> >> Although [::]:80 ipv6only=off; does work as advertized (including for
> >> localhost sockets), [::1]:80 ipv6only=off; fails to respond to v4
> >> connections.
>
> LT> Which is expected, since ::1 is an ipv6 address.
>
> No it is not expected.
>
> Everything else sees conenctions to anything in 127.0.0.0/8 when
> listen(2)ing to ::1 with bindv6only off.
>
> -JimC
> --
> James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Nginx 1.4 problem

Alder Network May 01, 2013 01:14PM

Re: Nginx 1.4 problem

Maxim Dounin May 01, 2013 01:42PM

Re: Nginx 1.4 problem

Alder Network May 01, 2013 02:02PM

Re: Nginx 1.4 problem

Alder Network May 01, 2013 02:18PM

Re: Nginx 1.4 problem

Maxim Dounin May 01, 2013 05:10PM

Re: Nginx 1.4 problem

openletter May 01, 2013 05:20PM

Re: Nginx 1.4 problem

Alder Network May 01, 2013 05:26PM

Re: Nginx 1.4 problem

James Cloos May 03, 2013 02:08AM

RE: Nginx 1.4 problem

Lukas Tribus May 03, 2013 04:02AM

Re: Nginx 1.4 problem

Miguel Clara May 06, 2013 12:34PM

Re: Nginx 1.4 problem

Maxim Dounin May 01, 2013 05:28PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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