[GH-ISSUE #1524] https多端口监听代理 #1205

Closed
opened 2026-05-05 12:46:32 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @seklure on GitHub (Nov 18, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1524

想咨询一下如何通过https同一个域名不同端口实现代理?
配置如下:
frpc:
#[web01]
#type = https
#local_ip = 127.0.0.1
#local_port = 6690
#use_encryption = true
#use_compression = true
#custom_domains = www.test.cn

#[web02]
#type = https
#local_ip = 127.0.0.1
#local_port = 9898
#use_compression = true
#custom_domains = www.test.cn

Originally created by @seklure on GitHub (Nov 18, 2019). Original GitHub issue: https://github.com/fatedier/frp/issues/1524 想咨询一下如何通过https同一个域名不同端口实现代理? 配置如下: frpc: #[web01] #type = https #local_ip = 127.0.0.1 #local_port = 6690 #use_encryption = true #use_compression = true #custom_domains = www.test.cn #[web02] #type = https #local_ip = 127.0.0.1 #local_port = 9898 #use_compression = true #custom_domains = www.test.cn
Author
Owner

@seklure commented on GitHub (Nov 18, 2019):

@fatedier 领导麻烦帮忙看一下呗,感谢!

<!-- gh-comment-id:554999650 --> @seklure commented on GitHub (Nov 18, 2019): @fatedier 领导麻烦帮忙看一下呗,感谢!
Author
Owner

@fatedier commented on GitHub (Nov 18, 2019):

同一域名,不同的本地服务,如果是同样的服务,想做负载均衡,可以尝试 负载均衡示例

如果是不同服务,建议还是通过域名或者端口区分开,可以直接做 tcp 类型的映射。

<!-- gh-comment-id:555017420 --> @fatedier commented on GitHub (Nov 18, 2019): 同一域名,不同的本地服务,如果是同样的服务,想做负载均衡,可以尝试 [负载均衡示例](https://github.com/fatedier/frp/blob/master/README_zh.md#%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1) 。 如果是不同服务,建议还是通过域名或者端口区分开,可以直接做 tcp 类型的映射。
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#1205
No description provided.