配置单个HTTPS正常 一旦大于等于两个就出错

问答中心分类: Nginx配置单个HTTPS正常 一旦大于等于两个就出错
匿名用户 asked 8年 ago
nginx -V
nginx version: nginx/1.9.5
built by gcc 4.8.4 (Ubuntu 4.8.4-2ubuntu1~14.04)
built with LibreSSL 2.3.0
TLS SNI support enabled
configure arguments: --prefix=/usr/local/nginx --user=www --group=www --with-http_stub_status_module --with-http_v2_module --with-http_ssl_module --with-ipv6 --with-http_gzip_static_module --with-http_realip_module --with-http_flv_module --with-ld-opt=-ljemalloc --with-openssl=/root/oneinstack/src/libressl-2.3.0 --with-ld-opt=-lrt
 
配置了一个https站点是没有问题的 但是 一旦大于1个 就会报错
nginx: [emerg] duplicate listen options for 0.0.0.0:443 in /usr/local/nginx/conf/vhost/lab.solarhell.com.conf:7

5 Answers
oneinstack answered 8年 ago

客户端不支持SNI,默认一个公网ip,只能配置一个域名https
详细请访问:http://segmentfault.com/q/1010000002581052

动力魔方 answered 5年 ago
遇到同样的问题!!

oneinstack answered 5年 ago
nginx 还是 apache?

动力魔方 answered 5年 ago
是Nginx 

oneinstack answered 5年 ago
如果客户端不支持SNI,比如低版本浏览器IE6 ,就只能一个https访问正常,chrome这些应该都正常