upstream tomcat-portal {
server 192.168.25.141:8080;
}
server {
listen 80;
server_name www.pinyougou.com;
location / {
proxy_pass http://tomcat-portal;
index index.html;
}
}
upstream tomcat-portal {
server 192.168.25.141:8080;
server 192.168.25.141:8180;
server 192.168.25.141:8280;
}
server {
listen 80;
server_name www.pinyougou.com;
location / {
proxy_pass http://tomcat-portal;
index index.html;
}
}
upstream tomcat-portal {
server 192.168.25.141:8080;
server 192.168.25.141:8180 weight=2;
server 192.168.25.141:8280;
}
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |