New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
发现一个问题证书无法自动更新的问题 #1785
Comments
301 应该不影响. 贴出来 log |
中断更新过程得到acme.sh给nginx的配置: server {
listen 80;
server_name test.domain;
#ACME_NGINX_START
location ~ "^/\.well-known/acme-challenge/([-_a-zA-Z0-9]+)$" {
default_type text/plain;
return 200 "$1.8XXaeMDlCDC7zI7C5OLAEEBxqFDrP3PVZdrcacWgcxQ";
}
#NGINX_START
return 301 https://$host$request_uri;
} 问题出在这个配置似乎不是顺序执行的??
把
|
对没错nginx的确不是执行第一个匹配到的location,参考 https://serverfault.com/questions/836504/does-order-of-lines-matter-in-nginx 猜的. server {
listen 80;
server_name test1.domain;
location / {
return 301 https://$host$request_uri;
}
} |
@rewqazxv 正解,301跳转使用了
就能自动更新了 |
@AriaLyy 那现在必须去掉301,才可以更新吗 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
如果我在nginx中配置了301跳转,证书将无法自动更新
如
作者能否提供一个参数,在更新的时候使用指定的nginx配置脚本?
The text was updated successfully, but these errors were encountered: