Browse Source

rules update

pull/26/head
有安科技 1 year ago
parent
commit
8743dc1c23
  1. 15
      rules/force-https.lua
  2. 0
      rules/sqli-more.lua

15
rules/force-https.lua

@ -0,0 +1,15 @@
--[[
: http重定向https
:
:
: http请求重定向到https
--]]
if ngx.var.scheme == "http" then
return ngx.redirect("https://" .. ngx.var.host)
end
return false

0
rules/SQLi.lua → rules/sqli-more.lua

Loading…
Cancel
Save