#配置上游服务器
upstream tomcats {
server 192.168.204.130:8080;
server 192.168.204.129:8080;
}
server {
listen 80;
server_name www.tomcats.com;
location / {
proxy_pass http://tomcats;
}
}
#配置上游服务器
upstream tomcats {
server 192.168.204.130:8080;
server 192.168.204.129:8080;
}
server {
listen 80;
server_name www.tomcats.com;
location / {
proxy_pass http://tomcats;
}
}