尝试将 SSL 证书添加到站点时出现“授权过程失败”

尝试将 SSL 证书添加到站点时出现“授权过程失败”

继从我之前的问题,当我在我的数字海洋服务器中运行此命令时:

sudo certbot --authenticator webroot --webroot-path /home/james/postr --installer nginx -d <sitename>

我收到此错误:

Failed authorization procedure

The client lacks sufficient authorization :: Invalid response from 
http://www.<sitename>.com/.well-known/acme-challenge/oAVGa4eBNfQQ1Vrn_q-
iKjV2T6ue3H5kOcxEWpztrHc

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

   Domain: www.venvor.com
   Type:   unauthorized
   Detail: Invalid response from
   http://www.<sitename>.com/.well-known/acme-challenge/oAVGa4eBNfQQ1Vrn_q-
   iKjV2T6ue3H5kOcxEWpztrHc:
   "<h1>Not Found</h1><p>The requested URL
   /.well-known/acme-challenge/oAVGa4eBNfQQ1Vrn_q-iKjV2T6ue3H5kOcxEWpztrHc
   was not found on "

我已经尝试将 url 路径添加到我的 urls 文件中:

urlpatterns = [
    url(r'^admin/', admin.site.urls),
    url(r'^.well-known/acme-challenge/', admin.site.urls),
]

然而它仍然不起作用。知道问题是什么吗?

相关内容