[GH-ISSUE #1450] https2http返回header里的Location 值没有将http改为 https 的问题 #1145

Closed
opened 2026-05-05 12:44:03 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @schunlei on GitHub (Sep 28, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1450

使用版本:V0.29

部分配置如下:
[httpssss]
type=https
subdomain=nc
header_security=https
plugin=https2http
plugin_local_addr= 127.0.0.1:80
plugin_crt_path = *******
plugin_key_path= ******
plugin_header_X-From-Where = frp

情况说明:

使用docker上的安装的nextcloud,访问时,会首先使用返回302状态,返回的header里有location,如下:
Location:http://nc.*******/apps/files/
上面应该 是 https 而不应该出现 http

这种情况有办法解决么?

Originally created by @schunlei on GitHub (Sep 28, 2019). Original GitHub issue: https://github.com/fatedier/frp/issues/1450 使用版本:V0.29 部分配置如下: [httpssss] type=https subdomain=nc header_security=https plugin=https2http plugin_local_addr= 127.0.0.1:80 plugin_crt_path = ******* plugin_key_path= ****** plugin_header_X-From-Where = frp 情况说明: 使用docker上的安装的nextcloud,访问时,会首先使用返回302状态,返回的header里有location,如下: Location:**http**://nc.*******/apps/files/ 上面应该 是 https 而不应该出现 http 这种情况有办法解决么?
Author
Owner

@fatedier commented on GitHub (Sep 29, 2019):

如果本地服务是你自己的,你自己可以修改这个 location 的内容为 https。

还可以将访问 http 的内容再重新 302 到 https。

<!-- gh-comment-id:536243318 --> @fatedier commented on GitHub (Sep 29, 2019): 如果本地服务是你自己的,你自己可以修改这个 location 的内容为 https。 还可以将访问 http 的内容再重新 302 到 https。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1145
No description provided.