Contact Information
No response
1Panel Version
v2.0.16
Problem Description
网站 HTTPS 配置每保存一次,配置文件就会多出来一条
if ($scheme = http) {
return 301 https://$host$request_uri;
}
Steps to Reproduce
- 创建一个网站,启用 https
- 配置网站,切换到 HTTPS 选项卡,点击保存
- 配置文件多出来了一条跳转判断
- 每点击一次保存就多出来一条
The expected correct result
if ($scheme = http) {
return 301 https://$host$request_uri;
}
在配置文件中只应出现一次
Related log output
Additional Information
No response