mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #204] 在特权模式下多个vhost端口如何配置 #138
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#138
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 @idoall on GitHub (Dec 28, 2016).
Original GitHub issue: https://github.com/fatedier/frp/issues/204
在frps,中如果设置多个vhost_http_port的话,只有最后一个起作用
而在frpc使用特权模式,有多个站点时,无法分配不同的端口号。
比如,期望在一个frpc中,即可配置a.xx.com:80访问,又可以配置a.xx.com:5000访问到另外一个地址
@fatedier commented on GitHub (Dec 28, 2016):
vhost 的作用就是使不同的域名可以共用同一个 80 端口对外提供服务,会根据域名路由到后端不同的服务。
你的这个需求可以使用 tcp 类型,不需要使用 vhost。
@idoall commented on GitHub (Dec 29, 2016):
使用tcp的话,整个frpc都出问题了,请帮忙看下我的配置是否有问题
下面是frpc的日志错误信息
@fatedier commented on GitHub (Dec 29, 2016):
frpc 所在服务器无法连接到 172.17.0.10,另外 tcp 类型不用配 custom_domains。
@idoall commented on GitHub (Jan 5, 2017):
如果不配置TCP是http的话是可以连接的,看来TCP是不起作用
@fatedier commented on GitHub (Jan 5, 2017):
你配置中是 web01,日志里是 a.xx.com,这个配置是否有问题?
建议先使用文档里介绍的最简单的配置,成功了之后再增加其他配置。