问题描述
server {
listen 80;
server_name example.com;
root /home/me/example.com;
index index.html
location /.well-kNown/ {
default_type "text/plain";
root /home/me/example.com/;
}
}
要对此进行测试,我在/home/me/domain.com/.well-kNown/acme-challenge/index.html
中有一个虚拟的index.html,当我用浏览器转到那里时,它会显示出来。
但是当我跑步时
$ sudo certbot --cert-only
使用certbot(使用Ubuntu 20.04 snap版本)输入:
certbot然后重新报告“连接被拒绝”并退出。不确定为什么会这样,因为正如我所说,浏览器可以正常访问http://example.com/.well-known/acme-challenge/index.html中的文件(我创建的虚拟文件)。 Letsencrypt.log还会显示将令牌写入正确的文件系统路径。我尝试了几种安装方式的变种,现在Letsencrypt阻止了我一段时间。
在此处更改域名的日志加密到https://gist.github.com/pferrel/d8083bdb912fc989aa5c1f5087f7ea3d
我在做什么错了?
编辑:
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)