[GH-ISSUE #4281] frp 使用route路由locations无效 #3378

Closed
opened 2026-05-05 14:10:37 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @lucasjinreal on GitHub (Jun 15, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4281

Bug Description

用的一个ini版本的frp,先不管版本。配置了route却一直报错404

[http2]
type = http
local_ip = 127.0.0.1
local_port = 8000
custom_domains = llm.xx.cn
remote_port = 8080 # server 8080 to call this, use same as all other clients
locations = ["/v1"]

[http2]
type = http
local_ip = 127.0.0.1
local_port = 8088
custom_domains = llm.xx.cn
remote_port = 8080
locations = ["/sd3"]

我本地curl本地8088端口是没有问题的。

curl http://127.0.0.1:8088/sd3
{"message":"Hello World, did you using frp get your local service out? this is SD3"}

但就是404

frpc Version

0.50.0

frps Version

0.50.0

System Architecture

linux

Configurations

No

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @lucasjinreal on GitHub (Jun 15, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4281 ### Bug Description 用的一个ini版本的frp,先不管版本。配置了route却一直报错404 ``` [http2] type = http local_ip = 127.0.0.1 local_port = 8000 custom_domains = llm.xx.cn remote_port = 8080 # server 8080 to call this, use same as all other clients locations = ["/v1"] [http2] type = http local_ip = 127.0.0.1 local_port = 8088 custom_domains = llm.xx.cn remote_port = 8080 locations = ["/sd3"] ``` 我本地curl本地8088端口是没有问题的。 curl http://127.0.0.1:8088/sd3 {"message":"Hello World, did you using frp get your local service out? this is SD3"} 但就是404 ### frpc Version 0.50.0 ### frps Version 0.50.0 ### System Architecture linux ### Configurations No ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [X] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:10:37 -06:00
Author
Owner

@github-actions[bot] commented on GitHub (Jul 7, 2024):

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

<!-- gh-comment-id:2212068734 --> @github-actions[bot] commented on GitHub (Jul 7, 2024): Issues go stale after 21d 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#3378
No description provided.