diff --git a/src/common/core/ui/confs/default-server-http/ui.conf b/src/common/core/ui/confs/default-server-http/ui.conf index 44e98af27..f3f3ffdb5 100644 --- a/src/common/core/ui/confs/default-server-http/ui.conf +++ b/src/common/core/ui/confs/default-server-http/ui.conf @@ -7,6 +7,9 @@ access_by_lua_block { if scheme == "http" and http_host ~= nil and http_host ~= "" and request_uri and request_uri ~= "" then return ngx.redirect("https://" .. http_host .. request_uri, ngx.HTTP_MOVED_PERMANENTLY) end + if scheme == "https" and request_uri and request_uri ~= "" and not request_uri:match("^/setup") then + return ngx.redirect("https://" .. http_host .. "/setup", ngx.HTTP_MOVED_TEMPORARILY) + end } set $backendui "{{ UI_HOST }}";