Hello forum,
I need some help. I’m running Nextcloud on a dietpi with lighttpd and Let’s Encrypt with a dyndns adress.
I changed the lighttpd.conf from /var/www to /var/www/nextcloud to directly get the NC via www.mydomain.de instead of www.mydomain.de/nextcloud
Now, the LE-certificate has expired. To renew it, I had to - temporarely - turn the config back to /var/www. Renewal was successful. But then - after turning the config back to /var/www/nextcloud the certificate is not shown. There is still the old one.
Is there a way to get this constallation done, or is it better to leave the document-root to /var/www (then also certbot automatically can renew the certificate).
well I would re-issue an new cert so certbot certonly --webroot -w /var/www/nexcloud -d www.mydomain.de with your real domain.
If certbot says that certs are not yet due to renewal then you would need to do this command first certbot revoke --cert-name www.mydomain.de and delete the cert.
and when you need to renew your cert simple enter: certbot renew.
today I updated my certificate via the described command. Even though the update-process was successfull, my webbrowser(s) still show the existing certificate.
a restart of lighttpd (and also the system) didn’t help.
How can I switch to the new certificate ?