Welcome! Log In Create A New Profile

Advanced

Re: IPv6 support

April 22, 2009 01:46AM
On Tue, Apr 21, 2009 at 07:17:23PM -0400, r wrote:

> Hello,
>
> I tried to bind nginx to an IPv6 address but impossible... I got the following error:
>
>
> 2009/04/22 00:57:08 21264#0: bind() to [::]:80 failed (98: )
>
>
> I'm not sure if nginx really supports IPv6, I just tested the --with-ipv6 switch for compilation regarding this thread : http://article.gmane.org/gmane.comp.web.nginx.english/9979
>
> After modifying the configuration file with this line in a server section:
>
>
> listen [::]:80
>
>
> I tested it with nginx -t before loading it:
>
>
> the configuration file /etc/nginx/nginx.conf syntax is ok
> the configuration file /etc/nginx/nginx.conf was tested successfully

If you run nginx on Linux, then:

$grep 98 /usr/include/asm-generic/errno.h
#define EADDRINUSE 98 /* Address already in use */

There is another process that run on this port.

As to "-t", nginx ignores EADDRINUSE while testing, because testing
is usually done when nginx is already listening.

However, it's strange, that nginx did not log the text error description.
What OS do you use ?


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

IPv6 support

r April 21, 2009 07:17PM

Re: IPv6 support

Igor Sysoev April 22, 2009 01:46AM

Re: IPv6 support

r April 22, 2009 02:12PM

Re: IPv6 support

Igor Sysoev April 22, 2009 02:27PM

Re: IPv6 support

r April 22, 2009 03:23PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 68
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready