Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
1 of 11 tasks
sunnysteam opened this issue Dec 25, 2023 · 7 comments
Closed
1 of 11 tasks

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

sunnysteam opened this issue Dec 25, 2023 · 7 comments

Comments

@sunnysteam
Copy link

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
@superzjg
Copy link

#3854 (comment)

@sunnysteam
Copy link
Author

@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"

@chengzequn
Copy link

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

@coderkk
Copy link

coderkk commented 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"

@sunnysteam
Copy link
Author

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

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

@ivwv
Copy link

ivwv commented Jan 25, 2024

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

@sunnysteam
Copy link
Author

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants