我将证书放在/etc/nginx下. 我将证书放在 /etc/nginx 下. 12345[root@VM_76_237_centos nginx]# ls1_yangxiong666.cn_bundle.crt conf.d fastcgi.conf fastcgi_params koi-utf mime.types
我将证书放在 /etc/nginx 下.
12345[root@VM_76_237_centos nginx]# ls1_yangxiong666.cn_bundle.crt conf.d fastcgi.conf fastcgi_params koi-utf mime.types nginx.conf scgi_params uwsgi_params win-utf2_yangxiong666.cn.key default.d fastcgi.conf.default fastcgi_params.default koi-win mime.types.default nginx.conf.default scgi_params.default uwsgi_params.default[root@VM_76_237_centos nginx]# nginx -s reloadnginx: [emerg] BIO_new_file("/etc/nginx/1_www.yangxiong666.cn_bundle.crt") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/etc/nginx/1_www.yangxiong666.cn_bundle.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)下面是证书配置
12345678910111213141516[root@VM_76_237_centos conf.d]# cat ssl.confserver { listen 443; server_name www.yangxiong666.cn; ssl on; ssl_certificate 1_www.yangxiong666.cn_bundle.crt; ssl_certificate_key 2_www.yangxiong666.cn.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; location / { proxy_pass http://127.0.0.1:8765; }}求大神解决下 实在是不知道怎么搞了.路径也没错啊