站点在配置了伪静态的情况下使用http方式申请SSL证书失败 #6068
Unanswered
zhengjianyang
asked this question in
Q&A
Replies: 2 comments
-
您好 经过我们测试 添加此伪静态配置之后 使用 HTTP 模式申请网站不受影响 |
Beta Was this translation helpful? Give feedback.
0 replies
-
在伪静态里第一条就写 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
联系方式
No response
1Panel 版本
v1.10.11-lts
问题描述
比如我配置了一段nginx伪静态规则:
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}
再申请ssl证书就会访问不了验证文件,因为我的规则是命中所有非文件请求,验证文件又不存在于站点目录下,就无法请求到验证文件了。
重现步骤
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
break;
}
}
加一段nginx伪静态规则申请SSL证书
期待的正确结果
在有一些特别伪静态规则情况下还能正常文件到SSL申请验证文件即正常申请SSL证书
相关日志输出
No response
附加信息
No response
Beta Was this translation helpful? Give feedback.
All reactions