出现的错误:
Domain: didiok.com
Type: unauthorized
Detail: Invalid response from
http://ok.com/.well-known/acme-challenge/NHz9-CH4W0RkSC2rH1BORGtdEdk9-43JM3dXiWd_U_o
[112.124.6.63]: "<html>\r\n<head><title>404 Not
Found</title></head>\r\n<body>\r\n<center><h1>404 Not
Found</h1></center>\r\n<hr><center>nginx/1.17.9</ce"
首先要检查一下那四个域名的解析的ip地址对不对
原因:域名下的 /.well-known/acme-challenge/NHz9-CH4W0RkSC2rH1BORGtdEdk9-43JM3dXiWd_U_o 这个路径,Let's Encrypt 服务器访问不到,所以需要配置一下 nginx/conf/nginx.conf 文件
在 nginx 的 nginx.conf 文件中写入以下配置
server {
listen 80;
server_name www.ok.com;
location ^~ /.well-known/acme-challenge/ {
default_type "text/plain";
root /usr/local/nginx/html;
}
location = /.well-known/acme-challenge/ {
re