如果我是正确的,那么在运行sudo certbot --nginx
时,certbot会尝试放置一个文件来验证域。但是然后我得到以下错误:
Failed authorization procedure. mydomain.nl (http-01): urn:ietf:params:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://mydomain.nl/.well-known/acme-challenge/PBjT0nQy7m5_bE42I1jr5mMaYxLMma4ONP9FAUgCD3c [2a02:2268:ffff:ffff::4]: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>404 Not Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p"
IMPORTANT NOTES:
- The following errors were reported by the server:
Domain: mydomain.nl
Type: unauthorized
Detail: Invalid response from
http://mydomain.nl/.well-known/acme-challenge/PBjT0nQy7m5_bE42I1jr5mMaYxLMma4ONP9FAUgCD3c
[2a02:2268:ffff:ffff::4]: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD
HTML 2.0//EN\">\n<html><head>\n<title>404 Not
Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p"
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
我已经尝试将这个块添加到wel中:
location ~ /.well-know/acme-challenge {
allow all;
root /var/www/mydomain.nl/html;
}
但是没有成功..
我可以在我的域上访问我的网站,因此DNS应该正确。
有人可以在这里向我指出正确的方向吗?任何帮助将不胜感激!
提前感谢!
我在使用nginx和certbot将Let's Encrypt SSL证书应用于我的域时遇到问题。我的(Nuxtjs)网站正在Ubuntu 18.04上的VPS上运行。我想将证书添加到...