VPS侦探论坛

 找回密码
 注册
查看: 3429|回复: 3

你好军哥,Let's Encrypt续期提示404请指点

[复制链接]
发表于 2017-12-2 00:36:48 | 显示全部楼层 |阅读模式

域名用xxxx.com和www.xxxx.com代替了域名解析地址是正确的. 提示404的页面我确实也无法访问.
[root@111111 ~]# /bin/certbot renew --renew-hook "/etc/init.d/nginx reload"
Saving debug log to /var/log/letsencrypt/letsencrypt.log

-------------------------------------------------------------------------------
Processing /etc/letsencrypt/renewal/xxxx.com.conf
-------------------------------------------------------------------------------
Cert is due for renewal, auto-renewing...
Plugins selected: Authenticator webroot, Installer None
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for xxxx.com
http-01 challenge for www.xxxx.com
Waiting for verification...
Cleaning up challenges
Attempting to renew cert (xxxx.com) from /etc/letsencrypt/renewal/xxxx.com.conf produced an unexpected error: Failed authorization procedure. www.xxxx.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://www.xxxx.com/.well-known/acme-challenge/H_lkbnq1slDDNkDYPKr90Ykdi-7ivuEX0y3O6ChKoUk: "<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>", xxxx.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://xxxx.com/.well-known/acme-challenge/6XaJGuf2bp8z3RC1nabaJCKCGP2qcKJ50w8mOVsUjUY: "<html>
<head><title>404 Not Found</title></head>
<body bgcolor="white">
<center><h1>404 Not Found</h1></center>
<hr><center>". Skipping.
All renewal attempts failed. The following certs could not be renewed:
  /etc/letsencrypt/live/xxxx.com/fullchain.pem (failure)

-------------------------------------------------------------------------------

All renewal attempts failed. The following certs could not be renewed:
  /etc/letsencrypt/live/xxxx.com/fullchain.pem (failure)
-------------------------------------------------------------------------------
1 renew failure(s), 0 parse failure(s)

IMPORTANT NOTES:
- The following errors were reported by the server:

   Domain: www.xxxx.com
   Type:   unauthorized
   Detail: Invalid response from
   http://www.xxxx.com/.well-known/acme-challenge/H_lkbnq1slDDNkDYPKr90Ykdi-7ivuEX0y3O6ChKoUk:
   "<html>
   <head><title>404 Not Found</title></head>
   <body bgcolor="white">
   <center><h1>404 Not Found</h1></center>
   <hr><center>"

   Domain: xxxx.com
   Type:   unauthorized
   Detail: Invalid response from
   http://xxxx.com/.well-known/acme-challenge/6XaJGuf2bp8z3RC1nabaJCKCGP2qcKJ50w8mOVsUjUY:
   "<html>
   <head><title>404 Not Found</title></head>
   <body bgcolor="white">
   <center><h1>404 Not Found</h1></center>
   <hr><center>"

   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.
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-12-2 11:52:03 | 显示全部楼层


续期的验证文件返回404错误,而且错误信息不像是nginx的错误信息
建议看一下详细日志里解析出来的ip是否正确、网站目录是否变动过
如果有用cdn的话也有可能有关系
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2017-12-2 12:09:55 | 显示全部楼层

回复 2# 的帖子


解析ip正确。没用cdn,网站目录设置是不是/etc/letsencrypt/renewal/xxxx.com.conf这个文件里设置呢?

我发现我的/home/wwwroot/xxxx.com/.well-known/这个目录是空的。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2017-12-3 11:03:22 | 显示全部楼层

回复 3# 的帖子






这个目录里的认证文件是认证完自动删掉的
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-9-24 23:23 , Processed in 0.026464 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表