mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2482] https2http 子页面无法打开 #1969
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#1969
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @crossgg on GitHub (Jul 14, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2482
OS:linux
Version:0.37
本地typecho的博客是http的,想用frp的 https2http
frpc.ini
可以正常打开https://blog.xx.xx的网站
但是点击子页面转跳到
http://127.0.0.1/archives/61/的页面无法正常显示不懂如何解决
@z0ow commented on GitHub (Jul 14, 2021):
plugin_host_header_rewrite = 127.0.0.1 改成 plugin_host_header_rewrite = blog.xx.xx
@crossgg commented on GitHub (Jul 14, 2021):
谢谢指导,可以正常打开子页面了,但是子页面还是http://blog.xx.xx/archives/61/
不知道是什么问题
@z0ow commented on GitHub (Jul 14, 2021):
没有测试过https2http,但是估计是rewrite的原因,可以考虑尝试 plugin_host_header_rewrite = https://blog.xx.xx
或者在frpc客户端的local_addr设备上的网页服务器重新做一个http强制转https的重定向,然后使用https2https
@crossgg commented on GitHub (Jul 14, 2021):
👌🏻谢谢作者
@netfun2000 commented on GitHub (Mar 15, 2023):
我也遇到类似问题。我是在给odoo做https2http:
[odoo_https2http]
type = https
plugin = https2http
plugin_local_addr = 127.0.0.1:8069
plugin_crt_path = /certs/odoo_public.crt
plugin_key_path = /certs/odoo.key
plugin_host_header_rewrite = odoo.xxxx.com
plugin_header_X-From-Where = frp
subdomain = erp
跳转子页面的时候,不自动转https而是http,例如访问:
https://odoo.xxxx.com,Odoo要跳转到子页面odoo.xxxx.com/web,而这时候,就变成了http://odoo.xxxx.com/web而不是https://odoo.xxx.com/web