fatedier / frp

A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
Apache License 2.0
82.33k stars 12.93k forks source link

frp 使用route路由locations无效 #4281

Closed lucasjinreal closed 8 hours ago

lucasjinreal commented 4 weeks ago

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. ...

Affected area

github-actions[bot] commented 1 week ago

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