Welcome! Log In Create A New Profile

Advanced

Re: [no subject]

Rob Schultz
June 01, 2011 12:18PM
> When running two vhosts, one of which listens on [::], the other on localhost, nginx will fail with this error:
> 2011/06/01 10:12:35 [emerg] 9750#0: bind() to 127.0.0.1:80 failed (98: Address already in use)
> My understanding was that this error stems from [::] being inclusive of 127.0.0.1, causing nginx to attempt to bind it twice.
> However, replacing the `listen localhost;` with `listen [::1];` removes the error, despite the fact that [::1] is also included within [::].

I think you ran into the issue of linux binding to both ipv6 and ipv4 by default.
http://wiki.nginx.org/HttpCoreModule#listen
you probably want to use
listen [::] ipv6only=on;

V/r,
Rob_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

(no subject)

Les Aker June 01, 2011 10:36AM

Re: [no subject]

Rob Schultz June 01, 2011 12:18PM

Re: [no subject]

Les Aker June 01, 2011 06:06PM

Re: [no subject]

edogawaconan June 01, 2011 10:36PM

Re: [no subject]

Maxim Dounin June 02, 2011 05:36AM

Re: your mail

Maxim Dounin June 02, 2011 05:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 150
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