From 74a8e61f3e7964df7cf539e2978a9d159f7e0010 Mon Sep 17 00:00:00 2001 From: CityFun <31820853+zhengkunwang223@users.noreply.github.com> Date: Tue, 30 Dec 2025 14:33:36 +0800 Subject: [PATCH] feat: change website http to https logic (#11522) Refs https://github.com/1Panel-dev/1Panel/issues/11521 --- agent/utils/nginx/components/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agent/utils/nginx/components/server.go b/agent/utils/nginx/components/server.go index eab94b5af..84fe0b046 100644 --- a/agent/utils/nginx/components/server.go +++ b/agent/utils/nginx/components/server.go @@ -482,7 +482,7 @@ func (s *Server) AddHTTP2HTTPS(httpsPort int) { } else { block.AppendDirectives(&Directive{ Name: "return", - Parameters: []string{"301", fmt.Sprintf("https://$host$request_uri:%d", httpsPort)}, + Parameters: []string{"301", fmt.Sprintf("https://$host:%d$request_uri", httpsPort)}, }) }