mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #2781] frpc如何转发到本地域名 #2224
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#2224
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 @candivan on GitHub (Jan 25, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2781
Describe the feature request
[common]
server_addr = xx.xx
server_port = 5443
[AA]
type = tcp
local_port = 8001
local_ip = 127.0.0.1
remote_port = 8002
[BB]
type = http
local_port = 82
remote_port = 8010
custom_domains = local.domain (这个在本机host 配置为127.0.0.1)
AA项目监听本地端口8001 这时候可以通过http://xx:8002访问
由于本机部署多个项目(同端口82 通过域名来识别不同项目 (nginx处理)) 比如BB 如何才可以http://xx:8010访问
Describe alternatives you've considered
No response
Affected area
@Becods commented on GitHub (Feb 4, 2022):
?看不懂你想要表达什么
没理解错误的话
bb→nginx(82)→frp(8010)→clientnginx单独开个端口给frp,走tcp映射就行了
@candivan commented on GitHub (Feb 7, 2022):
单独开端口是可以的 因为电脑开发很久了 很多项目都是用一个相同nginx端口82 然后通过不同域名(每个域名指向127.0.0.1)去指到不同项目的
@fatedier commented on GitHub (Feb 9, 2022):
https://github.com/fatedier/frp#rewriting-the-http-host-header
@candivan commented on GitHub (Feb 9, 2022):
这个之前试过了 都默认指到ngin的第一个项目
@Becods commented on GitHub (Feb 28, 2022):
nginx绑定域名
frpc映射相应端口
此issue不属于frp的配置问题