Open nicheosala opened 4 years ago
I substituted my domain with domain.com in the previuos message.
Anyway, I got the certificate for my website using certbot certonly --nginx
.
Hi, this looks like misconfig of the nginx
. For some reason, resolving of location ^~ /.well-known/acme-challenge/
could not work. For my clean installation of nginx v1.18.0
and certbot I did following things:
Ensure there is symlink to your host config in /etc/nginx/sites-available/
, e.g. ln -s /etc/nginx/sites-available/example.com.conf /etc/nginx/sites-enabled/
. If you downloaded zip file, generated by a configurator, it should be unpacked as a part of directory structure from that archive.
Optionally, ensure default configs in /etc/nginx/conf.d
that could override letsencrypt.conf
declarations (i.e. location ^~ /.well-known/acme-challenge/
section) are deactivated: mv /etc/nginx/conf.d/default.conf /etc/nginx/conf.d/default.conf.old
.
If location ^~ /.well-known/acme-challenge/
resolves, the command
sudo certbot certonly --webroot -d domain.com --email my@mail.com -w /var/www/_letsencrypt -n --agree-tos --force-renewal
should execute without errors and steps from NGINXconfig Setup work good. Anyway, you can try the certbot
command witn --dry-run
flag and test for success without actual ACME server requests not being limited by rate limits.
In my case this was caused by SELinux. Reading this blog post I found a solution: https://www.nginx.com/blog/using-nginx-plus-with-selinux/
CentOS Linux release 8.2.2004 (Core) nginx/1.14.1
I've followed the setup instructions step by step. However, when I execute:
The following error message appears:
I'm sure the web server is reachable from the internet. I'm trying to configure the webserver on a Raspberry Pi 4B with Nginx 1.14.2 and Certbot 0.31.0-1