一个端口配置多个服务
实验阶段-------
server {
listen 80;
server_name apitest.aa.com;
location / {
proxy_pass http://10.26.31.176:8081; #微服务地址测试环境
root html;
index index.html index.htm;
}
}
server {
listen 80;
server_name api.aa.com;
location / {
proxy_pass http://10.26.31.176:8080; #微服务地址线上环境
root html;
index index.html index.htm;
}
}