nginx error stopped working when deleting website on directadmin

tipovuhoa

New member
Joined
Nov 1, 2022
Messages
1
when i delete a website, it shows the error below again and nginx stops working, forcing me to recreate the website with the deleted domain name and re-issue the ssl for that domain, then nginx will work again, you can Can you tell me what this error is and how to fix it?

nginx: [emerg] cannot load certificate "/usr/local/directadmin/data/users/web364 3/domains/nhibaohiem.***.vn.cert.combined": BIO_new_file() failed (SSL: error: 02001002:system library:fopen:No such file or directory:fopen('/usr/local/direct admin/data/users/web3643/domains/nhibaohiem.***.vn.cert.combined','r') error:2 006D080:BIO routines:BIO_new_file:no such file)
nginx: configuration file /etc/nginx/nginx.conf test failed
 
Hello,

The error occurs probably because of DirectAdmin fails to remove a virtual host of a deleted user from nginx. Another possible reason is that you've customized the setup and use the certificate for other sites/domains.

So you might need to make sure you don't use the same certificate file for other domains, and run

Code:
cd /usr/local/directadmin/custombuild
./build update && ./build rewrite_confs

after you've removed the domain.
 
Back
Top