【发布时间】:2017-04-28 23:48:02
【问题描述】:
我正在使用 iRedMail 设置邮件服务器,并安装并运行所有内容。现在尝试使用 certbot-auto 客户端更改 Lets Encrypt 的自签名证书。我加了
location ~ /.well-known {
allow all;
}
像这样进入/etc/nginx/templates/misc.tmpl
location ~ /.well-known {
allow all;
}
# Deny all attempts to access hidden files such as .htaccess.
#location ~ /\. { deny all; }
# Handling noisy messages
location = ^/favicon.ico { access_log off; log_not_found off; }
location = ^/robots.txt { log_not_found off; access_log off; allow all; }
但是,当我重新启动 nginx 并浏览到 URL 时,我得到了 404,而 certbot-auto 也报告了 404。
我已将它放在规则之上以限制对隐藏文件的访问,所以这应该可以工作。
我们将不胜感激任何想法。提前致谢。
【问题讨论】:
-
您找到解决方案了吗?
-
我解决了我的问题...我输入了错误的域名。很傻。
标签: ssl nginx server lets-encrypt iredmail