Skip to content

Commit 74a8e61

Browse files
feat: change website http to https logic (#11522)
Refs #11521
1 parent e18472f commit 74a8e61

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/utils/nginx/components/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ func (s *Server) AddHTTP2HTTPS(httpsPort int) {
482482
} else {
483483
block.AppendDirectives(&Directive{
484484
Name: "return",
485-
Parameters: []string{"301", fmt.Sprintf("https://$host$request_uri:%d", httpsPort)},
485+
Parameters: []string{"301", fmt.Sprintf("https://$host:%d$request_uri", httpsPort)},
486486
})
487487
}
488488

0 commit comments

Comments
 (0)