公网访问本地https


Warning: Undefined array key "HTTP_REFERER" in /www/wwwroot/prod/www.enjoyasp.net/wp-content/plugins/google-highlight/google-hilite.php on line 58

frp

服务器端:
bindPort = 7000
vhostHTTPSPort = 443

frps.exe -c ./frps.ini

本地端:
serverAddr = “8.138.110.11”
serverPort = 7000

[[proxies]]
name = “test_htts2http”
type = “https”
customDomains = [“sta.xxxx.cn”]

[proxies.plugin]
type = “https2http”
localAddr = “127.0.0.1:3333”

crtPath = “./sta.xxxx.cn_public.crt”
keyPath = “./sta.xxxx.cn.key”
hostHeaderRewrite = “127.0.0.1”
requestHeaders.set.x-from-where = “frp”

这样公网对域名sta.xxxx.cn的https请求都会回到本地的3333端口,且是http类型的。

—–http 访问statest.1232.cn:65046端口都会转向本地65046
bindPort = 7000
vhostHTTPPort = 65046

serverAddr = “x.x.x.x”
serverPort = 7000

[[proxies]]
name = “web”
type = “http”
localPort = 65046
customDomains = [“statest.1232.cn”]