[no subject]
Les Aker
me at lesaker.org
Thu Jun 2 02:05:04 MSD 2011
Yes, except that I want it to bind to both v4 and v6 for those site.
My question was why the [::] causes it to fail to bind to 127.0.0.1, but works just fine with [::1], when the [::] should be binding to both of those in exactly the same way?
--
Les Aker
lesaker.org
On Wednesday, June 1, 2011 at 12:16 , Rob Schultz wrote:
>
> > 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 at nginx.org (mailto:nginx at nginx.org)
> http://nginx.org/mailman/listinfo/nginx
More information about the nginx
mailing list