nginx 配置 https 报错问题
问题描述
用 nginx 配置 https 时,需要配置 443 端口、私钥路径、证书路径。会报错如下:
root@VM-173-231-ubuntu:~# nginx -t
nginx: [emerg] BIO_new_file("/usr/local/nginx/conf/1_yculcy.cn_bundle.crt") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/usr/local/nginx/conf/1_yculcy.cn_bundle.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configurati