mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #628] 【frp-0.14.1】两个子域名和两个服务不能一对一的正确访问 #489
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#489
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 @Jonkimi on GitHub (Jan 29, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/628
Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)
Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST
What version of frp are you using (./frpc -v or ./frps -v)?
frps 和frpc的版本都是0.14.1
What operating system and processor architecture are you using (
go env)?Configures you used:
在云服务器上部署frps和blog服务,在内网机器上部署gitlab服务。
实现最后能使用两个子域名分别访问两个服务。
frps配置
frpc配置1--blog服务
frpc配置2--gitlab服务
nginx配置
Steps to reproduce the issue:
Describe the results you received:
访问gitlab.example.com实际上访问的是blog服务。
Describe the results you expected:
github.example.com应该无法访问。
Additional information you deem important (e.g. issue happens only occasionally):
Can you point out what caused this issue (optional)
@fatedier commented on GitHub (Feb 26, 2018):
本地无法复现,建议更新到最新版本再测试下吧。
@Jonkimi commented on GitHub (Feb 27, 2018):
更新到最新版本重新测试后发现是谷歌浏览器的问题。IE上测试访问均正常,火狐Ctrl+F5强制刷新后域名可正常对应服务,谷歌浏览器基本没戏。
@notedit commented on GitHub (Mar 19, 2018):
我也遇到类似的问题 多个子域名访问对不上 访问 a.xxx.net 有时候会出现 b.xxx.net 的内容
@Jonkimi commented on GitHub (Mar 14, 2019):
@fatedier 我的网站都是使用的 HTTP2,而 HTTP2 有多路复用,通过抓包,相同IP不同域名浏览器使用了同一个 TCP 连接,应该是 frp 不支持 HTTP2。(frp-0.25.0 目前测试结果一样)
@Jonkimi commented on GitHub (Mar 14, 2019):
发现和 #913 问题相同
@Jonkimi commented on GitHub (Mar 15, 2019):
查阅到的连接复用相关资料 Connection Reuse,How Connection Reuse works on multiple browsers。
我的网站使用的是同一个通配域名证书,都配置了 HTTP2,符合 rfc7540 里所说的 reuse 情况。
找到的解决方法: if you do not want connection sharing to happen, have a different IP address and/or ensure no overlaps in certificates, 我把通配域名证书改成单域名证书问题解决,非 frp 的问题。
@ax2009live commented on GitHub (May 18, 2021):
果然,按照您说的,把通配域名证书改成单域名证书,问题就解决了,解决困扰了我很久的问题,非常感谢!