[GH-ISSUE #3905] 使用url路由功能,路由地址也会被转发. #3094

Closed
opened 2026-05-05 14:00:15 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @zldaysleepy on GitHub (Dec 29, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3905

Bug Description

我在win10上使用客户端


proxies
name = "web1"
type = "http"
localIP = "127.0.0.1"
localPort = 8092
remotePort = 9000
customDomains = ["xxxxxxx.com"]
locations = ["/user"]


访问 xxxxxxx.com:9000/user 转发到本地服务上的结果是 127.0.0.1:8092/user
想请问一下有没有一种配置在使用路由功能的时候,路由不转发 即访问xxxxxxx.com:9000/user转发到127.0.0.1:8092

frpc Version

frp_0.53.2

frps Version

frp_0.53.2

System Architecture

windows/amd64

Configurations

proxies
name = "web1"
type = "http"
localIP = "127.0.0.1"
localPort = 8092
remotePort = 9000
customDomains = ["xxxxxxx.com"]
locations = ["/user"]

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 @zldaysleepy on GitHub (Dec 29, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3905 ### Bug Description 我在win10上使用客户端 *** [[proxies]] name = "web1" type = "http" localIP = "127.0.0.1" localPort = 8092 remotePort = 9000 customDomains = ["xxxxxxx.com"] locations = ["/user"] *** 访问 xxxxxxx.com:9000/user 转发到本地服务上的结果是 127.0.0.1:8092/user 想请问一下有没有一种配置在使用路由功能的时候,路由不转发 即访问xxxxxxx.com:9000/user转发到127.0.0.1:8092 ### frpc Version frp_0.53.2 ### frps Version frp_0.53.2 ### System Architecture windows/amd64 ### Configurations [[proxies]] name = "web1" type = "http" localIP = "127.0.0.1" localPort = 8092 remotePort = 9000 customDomains = ["xxxxxxx.com"] locations = ["/user"] ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] 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:00:15 -06:00
Author
Owner

@xqzr commented on GitHub (Dec 29, 2023):

似乎 未实现,但可以修改 请求头
https://gofrp.org/zh-cn/docs/reference/proxy/#httpproxyconfig

<!-- gh-comment-id:1872276596 --> @xqzr commented on GitHub (Dec 29, 2023): 似乎 未实现,但可以修改 请求头 https://gofrp.org/zh-cn/docs/reference/proxy/#httpproxyconfig
Author
Owner

@zldaysleepy commented on GitHub (Dec 30, 2023):

似乎 未实现,但可以修改 请求头 https://gofrp.org/zh-cn/docs/reference/proxy/#httpproxyconfig
您的意思是我直接去在请求头修改host吗
我目前采用的方案是使用tcp,路由功能如果客户端是服务器就很友好(因为我不太可能在win上搭建一个nginx)

<!-- gh-comment-id:1872449494 --> @zldaysleepy commented on GitHub (Dec 30, 2023): > 似乎 未实现,但可以修改 请求头 https://gofrp.org/zh-cn/docs/reference/proxy/#httpproxyconfig 您的意思是我直接去在请求头修改host吗 我目前采用的方案是使用tcp,路由功能如果客户端是服务器就很友好(因为我不太可能在win上搭建一个nginx)
Author
Owner

@github-actions[bot] commented on GitHub (Jan 25, 2024):

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

<!-- gh-comment-id:1909291977 --> @github-actions[bot] commented on GitHub (Jan 25, 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#3094
No description provided.