mirror of https://github.com/Safe3/uuWAF
rules update
parent
4c8459454d
commit
8743dc1c23
|
@ -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