mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2210] web代理可以使用subdomain,能否增加一个功能使用header区分呢 #1759
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#1759
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 @jiangtaomt on GitHub (Jan 22, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2210
在某些情况下没有域名,也不能暴露更多公网端口的情况下,可否通过header,映射到不同的内网web服务。
例如
frps当收到 web请求中,含有header_key=header_value 时,转到对应的代理
@heybody commented on GitHub (Jan 26, 2021):
这个需求应该可以内网部署个nginx ,在nginx配置header转发;
@fatedier commented on GitHub (Jan 26, 2021):
可以考虑,但是目前基于 ini 的配置文件的表达能力比较弱,一些复杂的功能描述没那么简洁,需要仔细考虑一下具体的用法。
@jiangtaomt commented on GitHub (Jan 27, 2021):
我这是为了管理散落在各地的docker主机,场景倒是比较简单,使用unix socket插件 转发/var/run/docker.socket 。之前倒是考虑过stcp,需要在服务器端部署frpc 和frps。
@fatedier commented on GitHub (Jan 27, 2021):
@jiangtao1921 其实通过域名做路由也可以的,相当于是基于 host header 做路由。
curl http://{frps IP}/xxx -H 'Host: host1'类似这样,custom_domains 里填写 host1, host2
@frankli0324 commented on GitHub (Jan 31, 2021):
在国内域名备案的环境下不可行
@jiangtaomt commented on GitHub (Jan 31, 2021):
已解决