IPv4 & IPv6

Maxim Dounin mdounin at mdounin.ru
Sat Apr 6 21:25:13 UTC 2013


Hello!

On Sat, Apr 06, 2013 at 04:05:22PM -0400, B.R. wrote:

> That's exactly what I tried first, and if there are multiple servers
> listening to same ports, I get the following error:
> nginx: [emerg] duplicate listen options for [::]:80 in
> /etc/nginx/conf.d/***.conf:3

You've already been told to only specify listen options once.  
That is, you should write

    server {
        listen [::]:80 ipv6only=on;
        ...
    }

    server {
        listen [::]:80;
        ...
    }

instead of 

    server {
        listen [::]:80 ipv6only=on;
        ...
    }

    server {
        listen [::]:80 ipv6only=on;
        ...
    }

in your config.

-- 
Maxim Dounin
http://nginx.org/en/donation.html



More information about the nginx mailing list