-
Notifications
You must be signed in to change notification settings - Fork 3.1k
[Bug] Wrong redirect url of http to https #11521
Copy link
Copy link
Closed
Description
Contact Information
No response
1Panel Version
2.0.16
Problem Description
Incorrectly redirect http://myhost:8080 to https://myhost/:8443
Steps to Reproduce
Wrong code:
Parameters: []string{"301", fmt.Sprintf("https://$host$request_uri:%d", httpsPort)},
Modified:
Parameters: []string{"301", fmt.Sprintf("https://$host:%d$request_uri", httpsPort)},
commit: #11364
The expected correct result
No response
Related log output
Additional Information
No response
Reactions are currently unavailable