mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #2125] 使用http2https插件时websocket无法连接 #1690
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#1690
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 @tgly307 on GitHub (Dec 2, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/2125
[REQUIRED] hat version of frp are you using
Version: 0.34.0
[REQUIRED] What operating system and processor architecture are you using
OS: windows
CPU architecture: x86
[REQUIRED] description of errors
confile
log file
Steps to reproduce the issue
Supplementary information
我在内网安装了ProxmoxVE(PVE),PVE自带了https服务,目前通过https方式穿透是完全正常的。
frps所在设备的443端口被nginx占用,用于给frpc的http服务提供证书转为https,因此frpc的https服务只能映射到其他端口,例如8088,这样外网的访问连接为https://example.com:8088
我希望在穿透到外网时也复用443端口,通过http2https插件后可以正常登录和访问页面,但是打开控制台时用到了websocket,wss协议连接会超时。
Can you guess what caused this issue
Checklist:
@Becods commented on GitHub (Dec 3, 2020):
建议使用nginx解决443冲突问题
frpc设置为tcp
反代后需要加入特殊协议头
@tgly307 commented on GitHub (Dec 3, 2020):
十分感谢!
@urzz commented on GitHub (Feb 4, 2021):
@tgly307 可以分享下你的配置么?有点不理解frpc设置为tcp后应该如何配置。。
@tgly307 commented on GitHub (Feb 6, 2021):
@urzz 抱歉看到晚了,我的nginx配置是这样的,frp将对应端口映射到VPS的6000端口。
frpc的配置如下
@tin607 commented on GitHub (Mar 15, 2024):
感谢