gpt4 book ai didi

ssl - iRedMail SSL 使用 Lets Encrypt certbot-auto

转载 作者:太空宇宙 更新时间:2023-11-03 13:23:34 25 4
gpt4 key购买 nike

我正在使用 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。

我已将其置于限制访问隐藏文件的规则之上,因此这应该有效。

如有任何想法,我们将不胜感激。提前致谢。

最佳答案

location /.well-known {
alias /opt/www/iredadmin/.well-known/;
}

关于ssl - iRedMail SSL 使用 Lets Encrypt certbot-auto,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41129191/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com