Nginx不在nginx.conf中指定的位置寻找ssl cert

nginx conf看起来像这样:

server { ssl_certificate /etc/nginx/ssl/nginx.crt; ssl_certificate_key /etc/nginx/ssl/4096_SSL.key; 

systemctl status nginx.service显示了这个:

 nginx: [emerg] BIO_new_file("/etc/nginx/nginx.crt") failed (SSL: error:0200100D:system library:fopen:Permission denied:fopen('/etc/nginx/nginx.crt','r') error:2006D002:BIO routines:BIO_new_file:system lib) 

为什么不是nginx在指定的完整path中查找文件?

在日志摘录说 – 它说:“ 权限被拒绝

所以请查看etcnginx文件夹的权限

以及文件nginx.crt本身的权限