目 录CONTENT

文章目录

frp转发内网http协议配置

frp服务端配置

bindAddr = "0.0.0.0"
bindPort = 7000
vhostHTTPPort = 8080   #http访问端口
auth.method = "token"
auth.token = "12345"
subdomainHost= aaa.xyz

webServer.addr = "0.0.0.0"
webServer.port = 7500
webServer.user = "admin"
webServer.password = "admin"

frp客户端配置

serverAddr = "1.1.1.1"  #服务端IP地址
serverPort = 7000

auth.method = "token"
auth.token = "12345"

webServer.addr = "0.0.0.0"
webServer.port = 7400
webServer.user = "admin"
webServer.password = "admin"
webServer.pprofEnable = false

[[proxies]]
name = "web1"
type = "http"
localIP = "192.168.110.181"
localPort = 9090
subdomain = "b"

[[proxies]]
name = "web2"
type = "http"
localIP = "192.168.110.182"
localPort = 9090
subdomain = "c"

在给aaa.xyz 添加泛域名解析后,可以使用b.aaa.xyz:8080访问web1,使用c.aaa.xyz:8080访问web2

0

评论区