Welcome! Log In Create A New Profile

Advanced

Re: IPv6 enabled Nginx default bind port

September 27, 2009 03:56AM
On Sun, Sep 27, 2009 at 03:33:15AM -0400, kuisma wrote:

> The opposite situation is also true. I tried out IPv6, but my first server definition did only use IPv4, making the later IPv6 enabled server definition fail to bind.
>
> 2009/09/27 09:12:41 30088#0: bind() to [::]:80 failed (98: Address already in use)
> 2009/09/27 09:12:41 30088#0: try again to bind() after 500ms
>
> Now after reading this posting, realizing I must enable it for all vhosts, but I really think this is an issue in need of at least documentation. Maybe I should add it to the English wiki.

No, you just need to set:

listen [::]:80 default ipv6only=on;

because Linux bind()s to both ipv4 and ipv6 by default.


--
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: 119
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