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

问答中心分类: Nginx配置单个HTTPS正常 一旦大于等于两个就出错
匿名用户 asked 2年 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

1 Answers
oneinstack 管理员 answered 2年 ago

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