nginx ssl_certificate is defined in server
Nginx 刘宇帅 2年前 阅读量: 536
问题
nginx 启动后 error 日志里报错,并且 https 无法访问,报错如下
"ssl_certificate" is defined in server listening on SSL port while SSL handshaking, client: 100.120.198.130, server: 0.0.0.0:443
我们需要修改下 nginx conf 配置,在 listen 443 中添加 default_server
server {
listen 443 ssl; # 报错配置
listen 443 default_server ssl; # 修复之后的配置
}