Error message:
cannot load certificate "/home/nginx/conf.d/cert/hlwyy.xaxrmyy.cn.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/home/nginx/conf.d/cert/hlwyy.xaxrmyy.cn.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
nginx: [emerg] cannot load certificate "/home/nginx/conf.d/cert/hlwyy.xaxrmyy.cn.pem": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/home/nginx/conf.d/cert/hlwyy.xaxrmyy.cn.pem','r') error:2006D080:BIO routines:BIO_new_file:no such file)
The root cause is that the address of the ssl certificate configured by nginx is incorrect, but the certificate is clearly stored in this directory, and the last post is because my nginx uses docker containerization, and the nginx started with the docker container is mounted on the address inside the docker and outside It is not the same, after changing the ssl certificate path to the path inside docker, it starts successfully.