在使用vhost.sh脚本的时候选择2Use your own SSL Certificate and Key报的错

问答中心分类: Linux在使用vhost.sh脚本的时候选择2Use your own SSL Certificate and Key报的错
asundust asked 5 年 ago

nginx: [emerg] BIO_new_file("/usr/local/nginx/conf/ssl/www.example.com.crt") failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/usr/local/nginx/conf/ssl/www.example.com.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed
[root@leeay oneinstack]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
 

Question Tags:

1 Answers
oneinstack answered 5 年 ago
删除对于配置文件重新绑定 rm -f /usr/local/nginx/conf/vhost/www.example.com.conf