Answer the question
In order to leave comments, you need to log in
Unable to verify domain for ssl Let's encrypt via certbot, what's wrong with Nginx config?
Good afternoon, I can not generate a certificate due to an error:
Failed authorization procedure. rukzak3d.ru (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from domain.ru/.well-known/acme-challenge/Iurj9ChNH9JNH... [ 82.146.55.40]: "\r\n404 Not Found\r\n\r\n404 Not Found\r\nnginx/1.19.0"
http {
include /etc/letsencrypt/le_http_01_cert_challenge.conf;
user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
server {
charset utf-8;
listen 443;
keepalive_timeout 120;
index index.php index.html;
root /var/www/sites/domain/web;
server_name domain.ru;
index index.php;
location / {
try_files $uri /index.php?$args;
}
location ^~ /.well-known/acme-challenge/ {
default_type "text/plain";
root /var/www/sites/domain/web;
}
}
}
http {
...
server {
....
location /.well-known/acme-challenge/Iurj9ChNH9JNHUtLUxc_6A0Yo4HS8AoEshvPTx_JXo0 {
default_type "text/plain";
return 200 Iurj9ChNH9JNHUtLUxc_6A0Yo4HS8AoEshvPTx_JXo0.DyD11cIvsF3VQsyoJH3me_in7zC0mwIq5myzx10Pa3c;
}
}
http {
location /.well-known/acme-challenge/Iurj9ChNH9JNHUtLUxc_6A0Yo4HS8AoEshvPTx_JXo0 {
default_type "text/plain";
return 200 Iurj9ChNH9JNHUtLUxc_6A0Yo4HS8AoEshvPTx_JXo0.DyD11cIvsF3VQsyoJH3me_in7zC0mwIq5myzx10Pa3c;
}
...
server {
....
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question