Welcome! Log In Create A New Profile

Advanced

Re: IPv6 enabled Nginx default bind port

September 06, 2009 08:26AM
On Sun, Sep 06, 2009 at 04:24:31AM -0400, zobo wrote:

> Hi.
> Many thanks for your reply.
>
> I do not want it to be ipv6only - I did however find the option in ru docs and source. I want it to be 6 and 4. As it is in case I put listen [::]:80. What I am suggesting is that if nginx is compiled --with-ipv6 that listen is by default [::]:80 instead of 80.
>
> To be even more descriptive: If I have an ipv6 enabled nginx and put this in configuration
>
> server {
> root /var/www;
> }
>
> This will listen on IPv4 port 80 and it will not be accessible over ipv6. I have to put:
>
> server {
> listen [::]:80;
> root /var/www;
> }
>
> If I then add another server declaration and forget to add listen [::]:80, nginx will fail to start up.
>
> I'm just saying, if ipv6 is enabled, it is desired, and default listen should be [::]:80 instead od 80.
>
> Hope I was able to explain better what I meant now.

Well, I understand your point.
I think that now IPv6 is still used occasionally and many people may
built nginx --with-ipv6 just in store or may use a package built --with-ipv6,
i.e. they do not really want ipv6.

And if nginx will bind() to "[::]:80" by default, ulimate result will
depend on OS IPv6ONLY settings: on FreeBSD nginx will bind to "[::]:80" only
while on Linux nginx will bind to both "*:80" and "[::]:80".


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