标签:反向代理
1)编辑vi nginx.conf,找到http{} 在里面加入
upstream ucentertomcat {
server 192.168.100.108:8080 weight=1;
server 192.168.100.105:8080 weight=1;
server 192.168.100.106:8080 weight=1;
}
在server{}里面加入
location /ucenter {
proxy_pass http://ucentertomcat;
index index.html index.htm;
}
标签:反向代理
原文地址:http://61455626.blog.51cto.com/1360190/1923060