Skip to content

[Bug] Wrong redirect url of http to https #11521

@CalvinXu17

Description

@CalvinXu17

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

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions