[fix] Force portal scheme. Fix #25

This commit is contained in:
opi 2014-11-13 20:27:01 +01:00
parent 57f4dcdf97
commit edd3e030f4

View file

@ -687,6 +687,11 @@ if ngx.var.host == conf["portal_domain"]
then
if ngx.var.request_method == "GET" then
-- Force portal scheme
if ngx.var.scheme ~= conf["portal_scheme"] then
return redirect(portal_url)
end
-- http://mydomain.org/ssowat
if ngx.var.uri.."/" == conf["portal_path"] then
return redirect(portal_url)