Hello,
I am also experiencing problems with setting up nginx and certbot, but I
think it is more nginx that is to blame. After reconfiguring and restarting
nginx, it is still running with the old configuration. Only rebooting solves
the problem for me.
Here is what it looks like (everything as
Actually this seems to be a thing of the service, not nginx itself.
When I stop the service with the old configuration file, manually run
/gnu/store/bdhfqs7sx3mal6pzz8z00hw4cpn5dj7x-nginx-1.21.4/sbin/nginx -p
/var/run/nginx -c new_configuration_file
kill the process, and "herd restart nginx",