Ssl not working

I don't see anything wrong with that nginx config.

Was nginx running when you ran the command to get that nhps certificate?

Because there is a known bug in Certbot using the --nginx plugin if you do not have nginx running when using that command. It will start nginx but not using systemd. If you normally use systemd (and most systems do) this can create two nginx systems.

The easiest way to fix that is to reboot your server. But, you have so many server blocks I can see that would be disruptive. You did not provide any info about your o/s in your first post.

But, this command could identify this problem before rebooting.

sudo ps -eF | grep -i 'nginx' | grep -v grep

If you use systemd this is also useful

sudo systemctl status -l --no-pager nginx
2 Likes