Yes, but only the ggiftzdev.club domain
www.ggiftzdev.club I don't need
Here's the result.
root@ubuntu-s-1vcpu-1gb-intel-nyc1-01:~# sudo nginx -s reload
root@ubuntu-s-1vcpu-1gb-intel-nyc1-01:~# sudo certbot certonly --nginx -d "ggiftzdev.club" --dry-run
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Cert not due for renewal, but simulating renewal for dry run
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for ggiftzdev.club
Using default address 80 for authentication.
Waiting for verification...
Cleaning up challenges
IMPORTANT NOTES:
- The dry run was successful.
hmm...
Perhaps it requires the path without the "-0001".
Let's try this:
reissue the cert, so that is doesn't have the "-0001", with the old cert-name
Try: sudo certbot --cert-name "ggiftzdev.club" certonly --nginx -d "ggiftzdev.club"
to confiirm, show: certbot certificates
then
remove the current cert certbot delete --cert-name ggiftzdev.club-0001
I'm sorry, did I miss something?
Let me go to I'll double-check everything.
The only thing I haven't figured out is the 521 error.
But I figured it was caused by cloudflare, which I gave up because it's not good friends with nginx.
I just don't need a second domain www.ggiftzdev.club.
Please excuse me for wasting your time, but without your help it will take me a very long time to do all this as I am a newbie doing this for the first time.
I was given it like this and told to make it work.
I really hope for your understanding and help
I get it and I know it's easy to get lost in the mix. The instructions that I provided in the two posts I just referenced are critical for cleaning up your certbot data, setting Cloudflare to not interfere in the certificate turnup process, and fixing your nginx configuration. Without doing those things, you will keep hitting the same walls.
root@ubuntu-s-1vcpu-1gb-intel-nyc1-01:~# sudo nginx -T
nginx: [emerg] open() "/etc/nginx/sites-enabled/default" failed (40: Too many levels of symbolic links) in /etc/nginx/nginx.conf:62
nginx: configuration file /etc/nginx/nginx.conf test failed