mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-01-13 18:44:14 +08:00
feat: change website http to https logic
This commit is contained in:
parent
e3dea80cb7
commit
325d824462
1 changed files with 1 additions and 1 deletions
|
|
@ -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)},
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue