Welcome! Log In Create A New Profile

Advanced

Re: IPv6 enabled Nginx default bind port

September 06, 2009 04:10AM
On Sun, Sep 06, 2009 at 03:39:12AM -0400, zobo wrote:

> Hi.
> Прежде всего, болшое спасибо дла Nginx.
>
> We are currently very much moving forward with IPv6 and I had a small problem with Nginx and I would like to give a suggestion. The problem was, that if we did not specify listen [::]:80 to every server declaration, nginx would fail to start. Naturally, because one listen declaration would open and AF_INET6 and another one would try to open AF_INET by default. As correct dualstack OS, AF_INET6 would also listen on AF_INET thus causing "98: Address already in use".
>
> As the solution is simple - add listern declaration to all server declarations - it can be unpractical in case of many server declarations. What I would suggest is, if Nginx is compiled --with-ipv6 that it listens by default on AF_INET6. Another thing speaking for this is that this is how ipv6 enabled programs should work. Operate on ipv6, and let OS handle ipv4 to ipv6 mapping.

I do not understand your problem, but have you tried to

listen [::]:80 default ipv6only;

?


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