mirror of https://github.com/Safe3/uuWAF
有安科技
1 year ago
2 changed files with 15 additions and 0 deletions
@ -0,0 +1,15 @@
|
||||
--[[ |
||||
规则名称: http重定向https |
||||
|
||||
过滤阶段: 请求阶段 |
||||
|
||||
危险等级: 低危 |
||||
|
||||
规则描述: 将不安全的http请求重定向到https |
||||
--]] |
||||
|
||||
|
||||
if ngx.var.scheme == "http" then |
||||
return ngx.redirect("https://" .. ngx.var.host) |
||||
end |
||||
return false |
Loading…
Reference in new issue