服务端配置

[common]
bind_port = 7000  #绑定的IP
vhost_http_port = 7008  #监听的IP

本地配置

[common]
server_addr = 120.24.*.*  #服务端IP地址
server_port = 7000  #服务端绑定的端口

[git]  #本地服务1
type = http
local_port = 9002 #本地端口
custom_domains = git.bd.com  #子域名1

[api] #本地服务2
type = http
local_port = 9001  #本地端口
custom_domains = api.bd.com#子域名2

[zentao] #本地服务3
type = http
local_port = 9000  #本地端口
custom_domains = zentao.bd.com #子域名3

分别访问

http://git.bd.com:7008    

http://api.bd.com:7008

http://zentao.bd.com:7008

即可访问到本地对应端口的服务

frp详细配置地址

 

相关文章:

  • 2021-09-06
  • 2021-11-18
  • 2021-05-28
  • 2022-12-23
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-03
  • 2021-12-28
  • 2022-12-23
  • 2021-11-23
  • 2021-10-05
相关资源
相似解决方案