IPv6 support
Igor Sysoev
is at rambler-co.ru
Wed Apr 22 09:46:37 MSD 2009
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/
More information about the nginx
mailing list