frp icon indicating copy to clipboard operation
frp copied to clipboard

[Feature Request]

Open touchmii opened this issue 1 year ago • 0 comments

Describe the feature request

能否通过定义path路由到不同的端口,类似nginx的location,目前的locations配置好想没有这个作用。

想要实现通过访问vhost端口加定义路径就能替代subdomain的作用直接路径到指定服务,如下面的配置 访问 x.x.x.x:80/web1 可以替代 web1.domain.com:80的效果,虽然可以使用nginx反向代理来实现,但是 配置多个服务还是不太方便,想要使用path主要是考虑想走cdn,这样只需一个域名即可。

[web1] type = http local_ip = 127.0.0.1 local_port = 8080 #remote_port = 17400 #subdomain = web1 #locations = /web1 path = /web1

Describe alternatives you've considered

No response

Affected area

  • [ ] Docs
  • [ ] Installation
  • [ ] Performance and Scalability
  • [ ] Security
  • [ ] User Experience
  • [ ] Test and Release
  • [ ] Developer Infrastructure
  • [ ] Client Plugin
  • [ ] Server Plugin
  • [ ] Extensions
  • [ ] Others

touchmii avatar Sep 01 '22 21:09 touchmii