内网穿透FRP泛域名配置

为什么有这个,我们有时候要使用多个客户端,上一篇的就不够用了

还是以简单的http代理配置为例

服务端

# frps.ini
[common]
bind_addr = 0.0.0.0
bind_port = 7000
vhost_http_port = 8090
#面板配置
dashboard_port = 7500
#特权配置
privilege_mode = true
privilege_token = 123456789099
#配置域名
subdomain_host = vvvtimes.com

启动
./frps -c frps.ini

客户端

# frpc.ini
[common]
server_addr = 114.215.87.93
server_port = 7000
privilege_token = 123456789099

[web1]
privilege_mode = true
type = http
local_ip = 127.0.0.1
local_port = 80
subdomain = frp
pool_count = 10

[web2]
privilege_mode = true
type = http
local_ip = 127.0.0.1
local_port = 81
subdomain = frp2
pool_count = 10
启动
frpc -c frpc.ini

这里可以再本地开两个nginx,一个监听80,另一个监听81

多个客户端时,分拆以下web1和web2即可

custom_domains和subdomain实际上可以同时使用,但是custom_domains不能包含在subdomain_host的子域之内。




猜你喜欢

转载自blog.csdn.net/gsls200808/article/details/80272309