IPv4 & IPv6

Maxim Dounin mdounin at mdounin.ru
Fri Apr 5 22:21:28 UTC 2013


Hello!

On Fri, Apr 05, 2013 at 06:07:23PM -0400, B.R. wrote:

> Hello,
> 
> @Maxim
> I tried the duplicate configuration entries:
> listen 80;
> listen [::]:80 ipv6only=on;
> 
> I has the following error:
> nginx: [emerg] duplicate listen options for [::]:80 in
> /etc/nginx/conf.d/***.conf:3

If you have multiple virtual server{}s with the same listening 
sockets used, you have to specify listening options in a single listen 
directive only.

That is, add "ipv6only=on" to a listen directive in first/default 
server in your configuration.  This will do the trick.

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



More information about the nginx mailing list