mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #179] 什么时候打算支持按照url路径来做代理?也就是类似根据nginx的location配置 #122
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#122
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @pkgplus on GitHub (Dec 16, 2016).
Original GitHub issue: https://github.com/fatedier/frp/issues/179
目前是根据custom_domains来做反向代理,能否考虑根据请求url来做映射并代理到frpc上?
@pkgplus commented on GitHub (Dec 19, 2016):
1.registryMap更换成独立的router,根据域名+配置的location来映射Listen对象;
2.另外,是否考虑把ProxyServer的配置和ServerMetric的字段合并一下,把公共字段合并到config包中
在dev的基础上写完了,并且测试也跑通了
增加custom_location配置参数:
[web01]
type = http
auth_token = 123
custom_domains = a.b.com
custom_location = /mac,/macbook
@fatedier commented on GitHub (Dec 19, 2016):
@xuebing1110
@pkgplus commented on GitHub (Dec 19, 2016):
@fatedier
OK,期待下一个小版本
兼容nginx的url可以在router.go里实现,后面如果路由复杂可以考虑router作为单独的package
@wanminxg commented on GitHub (Dec 20, 2016):
同期待这个功能。希望可以尽快加上。
@pkgplus commented on GitHub (Dec 20, 2016):
@wanminxg
想尝鲜的可以用一下我的版本:http://download.bingbaba.com/frp_0.9.0_linux_amd64.tar.gz
@wanminxg commented on GitHub (Dec 20, 2016):
@xuebing1110
server和client的配置可以发一下吗?为啥我没跑起来..
@fatedier commented on GitHub (Dec 27, 2016):
0.9.1 版本已支持。