mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #1351] [建议]HTTP重定向到HTTPS #1069
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#1069
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 @withsalt on GitHub (Aug 2, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1351
What version of frp are you using (./frpc -v or ./frps -v)?
0.28.0
What operating system and processor architecture are you using (
go env)?Debain 9
建议增加一个http重定向到https的功能。
场景:
1、在后端api部署的过程中,有事不允许http访问的,可以将http直接永久重定向到https
2、在实现从定向的过程中,很多时候是Nginx配合frps使用。frps可以重定向http的话,就不用再安装nginx了。
@status301 commented on GitHub (Aug 3, 2019):
不建议frp添加重定向功能,但是建议在 http转https中添加head,我中午会将代码贴出,完全可以用head,在本地服务代码中控制是否使用https
@status301 commented on GitHub (Aug 3, 2019):
我是启在docker中的,脱敏了一下
frps
frpc
@status301 commented on GitHub (Aug 3, 2019):
因为http2https是号匹配的,所以所有.aaaaadomain.cn的三级域名都可以使用https!
不过因为http2https不能加head,所以在html中加了下面的js,让页面跳到https去
@status301 commented on GitHub (Aug 3, 2019):
已知bug,在配置*.xxx.cn的http2https后不能再单独配置某一个的https跳转,否则会内存移除,内存一直上涨
@fatedier commented on GitHub (Aug 3, 2019):
@status301 能把你发现的 bug 单独提一个 issue 描述下吗?
@fatedier commented on GitHub (Aug 3, 2019):
@withsalt 建议配合 nginx 使用,frp 不会逐个实现 nginx 能够提供的基础能力。
@status301 commented on GitHub (Aug 3, 2019):
@fatedier 希望http2https中添加一个head,当前配置泛解析后,后台无法判断gui是http还是https访问的
@withsalt commented on GitHub (Aug 7, 2019):
@fatedier 好的,感谢。