Welcome! Log In Create A New Profile

Advanced

Re: IPv6 enabled Nginx default bind port

September 27, 2009 11:30AM
On Sun, Sep 27, 2009 at 05:26:05AM -0400, kuisma wrote:

> Igor Sysoev Wrote:
> -------------------------------------------------------
>
> > No, you just need to set:
> >
> > listen [::]:80 default ipv6only=on;
> >
> > because Linux bind()s to both ipv4 and ipv6 by default.
>
> Oh, how embarrassing, this is basically what you already said above ... Sorry 'bout that.
>
> I found the most intuitive solution was binding to explicit addresses, not using the wild card [::], this way no conflicts occurred, trying to bind an IPv4 address when IPv6 asked.
>
> The default ipv6only=yes worked as well, but a bit contra-intuitive. It might give the impression the entire server block is only to listen to IPv6, not only this listen directive exclusively. Also, the default keyword itself might be somewhat confusing; a local server block parameter affecting the global listen/bind parameters affecting all other server definitions. I'm actually not sure I understand it myself correctly.
>
> I'll try to write something clarifying this in the wiki.

I agree that "default" keyword may confuse. Probably, it should be renamed
to the "default_server" to indicate that this "server" block will handle
requests to given address:port if no matching virtual host is found.


--
Igor Sysoev
http://sysoev.ru/en/
Subject Author Posted

IPv6 enabled Nginx default bind port

zobo September 06, 2009 03:39AM

Re: IPv6 enabled Nginx default bind port

Igor Sysoev September 06, 2009 04:10AM

Re: IPv6 enabled Nginx default bind port

Igor Sysoev September 06, 2009 04:16AM

Re: IPv6 enabled Nginx default bind port

zobo September 06, 2009 04:24AM

Re: IPv6 enabled Nginx default bind port

Igor Sysoev September 06, 2009 08:26AM

Re: IPv6 enabled Nginx default bind port

zobo September 06, 2009 08:49AM

Re: IPv6 enabled Nginx default bind port

kuisma September 27, 2009 03:33AM

Re: IPv6 enabled Nginx default bind port

Igor Sysoev September 27, 2009 03:56AM

Re: IPv6 enabled Nginx default bind port

kuisma September 27, 2009 05:26AM

Re: IPv6 enabled Nginx default bind port

Igor Sysoev September 27, 2009 11:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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