startup error -> "[emerg] duplicate listen options" if 2nd IPv6 listener is enabled
pgn
nginx-forum at nginx.us
Tue Jul 3 17:39:55 UTC 2012
I run src-built nginx/1.3.2 on linux/64.
I have two nginx vhosts enabled:
site 1)
...
server {
server_name test1.loc;
listen 10.0.0.1:443;
listen [2001:xxx:xxxx:xxx::1]:443 ipv6only=on;
...
site 2)
...
server {
server_name test2.loc;
listen 10.0.0.1:443 default;
# listen [2001:xxx:xxxx:xxx::1]:443 ipv6only=on;
...[code]
With this config, if I start nginx,
service nginx start
Shutting down nginx done
Starting nginx done
all's well.
But, if for site 2) I enable the IPv6 listener,
- # listen [2001:xxx:xxxx:xxx::1]:443 ipv6only=on;
+ listen [2001:xxx:xxxx:xxx::1]:443 ipv6only=on;
Now, @ nginx start,
service nginx start
Starting nginx nginx: [emerg] duplicate listen options for
[2001:xxx:xxxx:xxx::1]:443 in
/usr/local/etc/nginx/sites-enabled/test2.loc.conf:21
startproc: exit status of parent of /usr/local/sbin/nginx: 1
failed
Is this a bug, feature or config problem?
Thanks.
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,228250,228250#msg-228250
More information about the nginx
mailing list