[GH-ISSUE #3893] frpc可以配置多个https吗,能否发下示例 #3089

Closed
opened 2026-05-05 13:59:59 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @sunnysteam on GitHub (Dec 25, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3893

Describe the feature request

frpc可以配置多个https吗,能否发下示例

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @sunnysteam on GitHub (Dec 25, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3893 ### Describe the feature request frpc可以配置多个https吗,能否发下示例 ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@superzjg commented on GitHub (Dec 25, 2023):

https://github.com/fatedier/frp/issues/3854#issuecomment-1858749276

<!-- gh-comment-id:1869001779 --> @superzjg commented on GitHub (Dec 25, 2023): https://github.com/fatedier/frp/issues/3854#issuecomment-1858749276
Author
Owner

@sunnysteam commented on GitHub (Dec 26, 2023):

@superzjg 我看了下这个评论,是要改成tcp吗?我目前是这样写的,但是不管用
(中文隐藏实际值)

serverAddr = "服务端ip"
serverPort = 7000

[[proxies]]
name = "web"
type = "https"
customDomains = ["域名1"]
[proxies.plugin]
type = "https2http"
localAddr = "客户端ip:端口1"
crtPath = "证书文件地址"
keyPath = "证书文件地址"
hostHeaderRewrite = "客户端ip"
requestHeaders.set.x-from-where = "frp"

[[proxies]]
name = "web2"
type = "https"
customDomains = ["域名2"]
[proxies.plugin]
type = "https2http"
localAddr = "客户端ip:端口2"
crtPath = "证书文件地址"
keyPath = "证书文件地址"
hostHeaderRewrite = "客户端ip"
requestHeaders.set.x-from-where = "frp"

<!-- gh-comment-id:1869195043 --> @sunnysteam commented on GitHub (Dec 26, 2023): @superzjg 我看了下这个评论,是要改成tcp吗?我目前是这样写的,但是不管用 (中文隐藏实际值) ``` serverAddr = "服务端ip" serverPort = 7000 [[proxies]] name = "web" type = "https" customDomains = ["域名1"] [proxies.plugin] type = "https2http" localAddr = "客户端ip:端口1" crtPath = "证书文件地址" keyPath = "证书文件地址" hostHeaderRewrite = "客户端ip" requestHeaders.set.x-from-where = "frp" [[proxies]] name = "web2" type = "https" customDomains = ["域名2"] [proxies.plugin] type = "https2http" localAddr = "客户端ip:端口2" crtPath = "证书文件地址" keyPath = "证书文件地址" hostHeaderRewrite = "客户端ip" requestHeaders.set.x-from-where = "frp" ```
Author
Owner

@chengzequn commented on GitHub (Dec 28, 2023):

@sunnysteam hi,最后有配置成功吗?

<!-- gh-comment-id:1870935948 --> @chengzequn commented on GitHub (Dec 28, 2023): @sunnysteam hi,最后有配置成功吗?
Author
Owner

@coderkk commented on GitHub (Dec 29, 2023):

今天试了连接家里的两架server,这个学法可行。

[[proxies]]
name = "web_web01"
type = "https"
customDomains = ["web01.example.com"]
[proxies.plugin]
type = "https2http"
localAddr = "192.168.99.100:8080"
crtPath = "./server.crt"
keyPath = "./server.key"
# hostHeaderRewrite = "127.0.0.1"
requestHeaders.set.x-from-where = "frp"

[[proxies]]
name = "web_web02"
type = "https"
customDomains = ["web02.example.com"]
[proxies.plugin]
type = "https2http"
localAddr = "127.0.0.1:80"
crtPath = "./server.crt"
keyPath = "./server.key"
# hostHeaderRewrite = "127.0.0.1"
requestHeaders.set.x-from-where = "frp"
<!-- gh-comment-id:1872064820 --> @coderkk commented on GitHub (Dec 29, 2023): 今天试了连接家里的两架server,这个学法可行。 ``` [[proxies]] name = "web_web01" type = "https" customDomains = ["web01.example.com"] [proxies.plugin] type = "https2http" localAddr = "192.168.99.100:8080" crtPath = "./server.crt" keyPath = "./server.key" # hostHeaderRewrite = "127.0.0.1" requestHeaders.set.x-from-where = "frp" [[proxies]] name = "web_web02" type = "https" customDomains = ["web02.example.com"] [proxies.plugin] type = "https2http" localAddr = "127.0.0.1:80" crtPath = "./server.crt" keyPath = "./server.key" # hostHeaderRewrite = "127.0.0.1" requestHeaders.set.x-from-where = "frp" ```
Author
Owner

@sunnysteam commented on GitHub (Jan 10, 2024):

@sunnysteam hi,最后有配置成功吗?

没有,貌似不支持两个https的情况。改成用tcp了,公网服务器上用nginx带上证书

<!-- gh-comment-id:1884041174 --> @sunnysteam commented on GitHub (Jan 10, 2024): > @sunnysteam hi,最后有配置成功吗? 没有,貌似不支持两个https的情况。改成用tcp了,公网服务器上用nginx带上证书
Author
Owner
<!-- gh-comment-id:1909795795 --> @ivwv commented on GitHub (Jan 25, 2024): https://blog.ivwv.site/article/new-frp-multiple-lan-web-server-add-https-support
Author
Owner

@sunnysteam commented on GitHub (Jan 26, 2024):

https://blog.ivwv.site/article/new-frp-multiple-lan-web-server-add-https-support

好的,这个问题可以关闭了。现在已知的两种方式
1、通过tcp,然后在公网服务器上用nginx带上证书实现;
2、通过多个3级域名,来实现

<!-- gh-comment-id:1911580258 --> @sunnysteam commented on GitHub (Jan 26, 2024): > https://blog.ivwv.site/article/new-frp-multiple-lan-web-server-add-https-support 好的,这个问题可以关闭了。现在已知的两种方式 1、通过tcp,然后在公网服务器上用nginx带上证书实现; 2、通过多个3级域名,来实现
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#3089
No description provided.