服務端配置
[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
即可訪問到本地對應端口的服務