[GH-ISSUE #2461] 0.37.0 多域名中有 vue 应用域名匹配错误,访问根路径会匹配到其他的域名 #1951

Closed
opened 2026-05-05 13:15:23 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @SunSeekerX on GitHub (Jun 26, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2461

[REQUIRED] hat version of frp are you using

Version:
0.37.0

[REQUIRED] What operating system and processor architecture are you using
OS: armbian
CPU architecture: arm64

[REQUIRED] description of errors
多个不同的域名映射到本地不同的端口,域名根路径匹配会发生交叉。比如 a.example.com 匹配到了 b.example.com
但是 a.example.com/foo/bar 可以正常匹配
b.example.cvue 应用,用的 hash 模式也就是路径会有 /
访问 a.example.com 匹配到了 b.example.com 时会跳转到 b.example.com/#/

confile

log file

Steps to reproduce the issue
1.
2.
3.

Supplementary information
frpc.ini

[common]
server_addr = x.x.x.x
server_port = 7000
token = xxxxxx

[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 2233

[a]
type = http
local_port = 9000
custom_domains = a.example.com

[b]
type = http
local_port = 2233
custom_domains = b.example.com


Can you guess what caused this issue

Originally created by @SunSeekerX on GitHub (Jun 26, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2461 <!-- From Chinese to English by machine translation, welcome to revise and polish. --> <!-- ⚠️⚠️ Incomplete reports will be marked as invalid, and closed, with few exceptions ⚠️⚠️ --> <!-- in addition, please use search well so that the same solution can be found in the feedback, we will close it directly --> <!-- for convenience of differentiation, use FRPS or FRPC to refer to the FRP server or client --> **[REQUIRED] hat version of frp are you using** <!-- Use ./frpc -v or ./frps -v --> Version: 0.37.0 **[REQUIRED] What operating system and processor architecture are you using** OS: armbian CPU architecture: arm64 **[REQUIRED] description of errors** 多个不同的域名映射到本地不同的端口,域名根路径匹配会发生交叉。比如 `a.example.com` 匹配到了 `b.example.com` 但是 `a.example.com/foo/bar` 可以正常匹配 `b.example.c` 是 `vue` 应用,用的 `hash` 模式也就是路径会有 / 访问 `a.example.com` 匹配到了 `b.example.com` 时会跳转到 `b.example.com/#/` **confile** <!-- Please pay attention to hiding the token, server_addr and other privacy information --> **log file** <!-- If the file is too large, use Pastebin, for example https://pastebin.ubuntu.com/ --> **Steps to reproduce the issue** 1. 2. 3. **Supplementary information** **frpc.ini** ```ini [common] server_addr = x.x.x.x server_port = 7000 token = xxxxxx [ssh] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = 2233 [a] type = http local_port = 9000 custom_domains = a.example.com [b] type = http local_port = 2233 custom_domains = b.example.com ``` **Can you guess what caused this issue**
gitea-mirror 2026-05-05 13:15:23 -06:00
Author
Owner

@github-actions[bot] commented on GitHub (Aug 5, 2021):

Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

<!-- gh-comment-id:893071667 --> @github-actions[bot] commented on GitHub (Aug 5, 2021): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
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#1951
No description provided.