Giter Club home page Giter Club logo

Comments (5)

superzjg avatar superzjg commented on June 19, 2024

#3854 (comment)

from frp.

sunnysteam avatar sunnysteam commented on June 19, 2024

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

from frp.

chengzequn avatar chengzequn commented on June 19, 2024

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

from frp.

coderkk avatar coderkk commented on June 19, 2024

今天试了连接家里的两架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"

from frp.

sunnysteam avatar sunnysteam commented on June 19, 2024

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

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

from frp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.