startup error -> "[emerg] duplicate listen options" if 2nd IPv6 listener is enabled

Oleksandr V. Typlyns'kyi wangsamp at gmail.com
Tue Jul 3 18:34:47 UTC 2012


Today Jul 3, 2012 at 14:12 pgn wrote:

> Sorry, I don't understand your point.
> 
> Why is this ok, and fully functional? 
> ---------------------------------
> server { server_name test1.loc;
> listen 10.0.0.1:443;
> ...
> server {server_name test2.loc;
> listen 10.0.0.1:443;
> ...
> ---------------------------------

  listen directive without additional parameters.

> but this is not?
> ---------------------------------
> server { server_name test1.loc;
> listen [2001:xxx:xxxx:xxx::1]:443 ipv6only=on;
> ...
> server {server_name test2.loc;
> listen [2001:xxx:xxxx:xxx::1]:443 ipv6only=on;
> ...
> ---------------------------------

  Additional parameters specified twice.

> In BOTH cases, BOTH server{} are listening on the same address:port,
> differentiated by server_name for vhost redirection.

  Additional parameters can be specified only once for the given address:port pair.

-- 
WNGS-RIPE



More information about the nginx mailing list