我正在关注 this tutorial为我的服务器生成 SSL 证书,但出现此错误。
Failed authorization procedure. example.com (http-01): urn:acme:error:unauthorized :: The client lacks sufficient authorization :: Invalid response from http://example.com/.well-known/acme-challenge/OdiQ9qPI7vwc-KVBOwc6BQulaN1827zzfx2ipqznmNM: " 404 Not Found
nginx
location ^~ /.well-known/ {
allow all;
root /var/www/laravel;
}
nginx-t
不返回任何错误。
如果我创建一个文件夹 test
和一个文件 text.txt
我可以使用 http://example.com/.well-known/访问它测试/文本.txt
。我尝试删除文件夹 well-know
,设置 chmod 0777
没有任何效果...
问题
我错过了什么?
最佳答案
尝试将配置 block 更改为
location ~ .well-known/ {
allow all;
root /var/www/laravel;
}
关于SSL 证书 - nGinx - 错误 404,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44621683/