uuWAF/rules/force-https.lua

15 lines
254 B
Lua
Raw Normal View History

2023-09-11 11:52:37 +00:00
--[[
: httphttps
:
:
: httphttps
--]]
if ngx.var.scheme == "http" then
return ngx.redirect("https://" .. ngx.var.host)
end
return false