Skip to content

[Bug] Website: HTTP to HTTPS auto-redirect does not work correctly #11360

@ydl00

Description

@ydl00

Contact Information

简先生

1Panel Version

社区版 v2.0.15

Problem Description

网站中使用 10443 https 端口时,
启用https后 证书设置下 , http选项 设置"访问http自动跳转到https",
此时 访问 http 界面 只会 301重定向到 https的 443 端口,而非 10443

Steps to Reproduce

C:\Users\yindl>curl http://xxx.cn:10080/ -i
HTTP/1.1 301 Moved Permanently
Server: openresty
Date: Tue, 16 Dec 2025 16:39:58 GMT
Content-Type: text/html
Content-Length: 166
Connection: keep-alive
Location: https://xxx.cn/
Strict-Transport-Security: max-age=31536000; includeSubDomains
Alt-Svc: h3=":443"; ma=2592000

<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>openresty</center>
</body>
</html>

The expected correct result

应该跳转 https://xxx.cn:10443/

Related log output

Additional Information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions