[GH-ISSUE #102] frp http能否绑定多个端口 #46

Closed
opened 2026-05-05 11:37:14 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @biless on GitHub (Aug 29, 2016).
Original GitHub issue: https://github.com/fatedier/frp/issues/102

vhost_http_port = 8080
在配置中这样就绑定了8080端口
但是在我的应用中 我希望不同的web配置绑定不同的端口

Originally created by @biless on GitHub (Aug 29, 2016). Original GitHub issue: https://github.com/fatedier/frp/issues/102 vhost_http_port = 8080 在配置中这样就绑定了8080端口 但是在我的应用中 我希望不同的web配置绑定不同的端口
Author
Owner

@biless commented on GitHub (Aug 29, 2016):

@fatedier

<!-- gh-comment-id:243051393 --> @biless commented on GitHub (Aug 29, 2016): @fatedier
Author
Owner

@fatedier commented on GitHub (Aug 29, 2016):

那直接使用 tcp 的代理类型就可以了,vhost_http_port 是用于根据不同的域名来路由到不同的后端服务。

<!-- gh-comment-id:243055156 --> @fatedier commented on GitHub (Aug 29, 2016): 那直接使用 tcp 的代理类型就可以了,vhost_http_port 是用于根据不同的域名来路由到不同的后端服务。
Author
Owner

@biless commented on GitHub (Aug 29, 2016):

@fatedier 搜嘎 我试试

<!-- gh-comment-id:243059404 --> @biless commented on GitHub (Aug 29, 2016): @fatedier 搜嘎 我试试
Author
Owner

@openmynet commented on GitHub (Aug 30, 2016):

@biless frp+nginx 可以完美解决你的问题

<!-- gh-comment-id:243352144 --> @openmynet commented on GitHub (Aug 30, 2016): @biless frp+nginx 可以完美解决你的问题
Author
Owner

@biless commented on GitHub (Aug 30, 2016):

@openmynet 利用tcp代理就可以 达到要求了

<!-- gh-comment-id:243352472 --> @biless commented on GitHub (Aug 30, 2016): @openmynet 利用tcp代理就可以 达到要求了
Author
Owner

@biless commented on GitHub (Aug 30, 2016):

@fatedier 麻烦大大 可以关闭了~

<!-- gh-comment-id:243352565 --> @biless commented on GitHub (Aug 30, 2016): @fatedier 麻烦大大 可以关闭了~
Author
Owner

@51xpage commented on GitHub (Jan 19, 2019):

如何绑定多个端口呢,现在用tcp只能绑定一个,已经可以sql server转发进来了,想弄个3389的转发,不知道咋配置,试了几种方案都不行。

1、
[tcp]
vhost_tcp_port = 8433
[tcp]
vhost_tcp_port = 9389

2、
[tcp]
vhost_tcp_port = 8433
[my]
vhost_tcp_port = 9389

3、
[tcp]
vhost_tcp_port = 8433
[tcp1]
vhost_3389_port = 9389 @fatedier

多谢

<!-- gh-comment-id:455782942 --> @51xpage commented on GitHub (Jan 19, 2019): 如何绑定多个端口呢,现在用tcp只能绑定一个,已经可以sql server转发进来了,想弄个3389的转发,不知道咋配置,试了几种方案都不行。 1、 [tcp] vhost_tcp_port = 8433 [tcp] vhost_tcp_port = 9389 2、 [tcp] vhost_tcp_port = 8433 [my] vhost_tcp_port = 9389 3、 [tcp] vhost_tcp_port = 8433 [tcp1] vhost_3389_port = 9389 @fatedier 多谢
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#46
No description provided.