skyding提问:
发布时间:2019-01-10
nginx上把http升级到Https 的时候报错,:No such file or directory
悬赏1 金钱
(回答此问题,将获得1 金钱奖励)
状态问题未解决,快来回答吧
这里我的nginx配置文件
- ssl on;
- ssl_certificate 1_www.***.top_bundle;
- ssl_certificate_key 2_www.***.top.key;
- ssl_session_timeout 5m;
- ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
- ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
- ssl_prefer_server_ciphers on;
复制代码
这是我的https证书存放路径
权限都是777
- [root@VM_125_172_centos nginx]# ls -lha /usr/local/nginx/conf
- total 92K
- drwxr-xr-x 3 root root 4.0K Jan 10 10:47 .
- drwxr-xr-x 11 root root 4.0K Jan 10 11:58 ..
- -rwxrwxrwx 1 root root 3.6K Jan 10 01:15 1_www.***.top_bundle.crt
- -rwxrwxrwx 1 root root 1.7K Jan 10 01:15 2_www.***.top.key
复制代码
当我执行 nginx -s reload的时候报错了
- nginx: [emerg] BIO_new_file("/usr/local/nginx/conf/1_www.****.top_bundle")
- failed (SSL: error:02001002:system library:fopen:No such file or
- directory:fopen('/usr/local/nginx/conf/1_www.***.top_bundle','r')
- error:2006D080:BIO routines:BIO_new_file:no such file)
复制代码
|