I’ve changed computers. I had backups of nginx.conf & the files in sites-available. After installing nginx and certbot on the new computer, I copied nginx.conf and the appropriate files (which contain the LetsEncrypt references) to sites-available and created the links to them in sites-enabled. I’ve tried running “nginx -t” but it has problems with nginx.conf presumably due to the LetsEncrypt files being missing. How do I reinstall the LetsEncrypt files on the new computer?
My domain is: johnrose.mywire.org & roseserver.mywire.org
I ran this command: sudo nginx -t
It produced this output:
manager@Server:~$ sudo nginx -t
[sudo] password for manager:
2025/08/13 07:59:00 [emerg] 9125#9125: open() "/etc/letsencrypt/options-ssl-nginx.conf" failed (2: No such file or directory) in /etc/nginx/sites-enabled/johnrose.mywire.org:35
nginx: configuration file /etc/nginx/nginx.conf test failed
My web server is (include version): nginx 1.24.0 (Ubuntu)
The operating system my web server runs on is (include version): Ubuntu Noble (24.04)
My hosting provider, if applicable, is: N/A
I can login to a root shell on my machine (yes or no, or I don't know): Yes
I'm using a control panel to manage my site (no, or provide the name and version of the control panel): Not yet done as can't start nginx
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot): certbot 4.2.0