I encounter an issue with issuing of Let’s Encrypt certificates.
When I try to issue one from the panel, I hit the 400 error dialog box.
Tracking down the error, I see that the file
nginx.conf_letsencrypt is correctly created in
Nginx is corrrectly reloaded as well.
systemctl status nginx, I see
Feb 01 10:31:03 <hostname> systemd: Reloading nginx - high performance web server. Feb 01 10:31:03 <hostname> systemd: Reloaded nginx - high performance web server.
Despite that, accessing
http://<domain>/.well-known/acme-challenge/<LE-id> does not work like if the new nginx config was not loaded.
nginx -t does not show any config error :
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful
nginx config manually does not work either.
None of the following work :
systemctl reload nginx nginx -s reload
If I restart nginx with
systemctl restart nginx, it works and the
http://<domain>/.well-known/acme-challenge/<LE-id> is accessible.
After that, if I resubmit the form in the panel to issue the certificate, it works (the certificate is correctly issued) BUT I need to restart with
systemctl restart nginx one more time for the certificate to be presented by nginx.
Obviously somthing is wrong but I cannot find out what is it.
Hestia has been installed in mid February 2021 with no custom or exotic config.
It was working well at the begining but this issue is now present for some time now.
Any idea of what could cause this issue ? This drives me crazy because I do not understand why the config is not correctly reloaded and why a restart is required.
Thanks for your help