nginx upstream set 2 tomcat links: upstream tomcats { server localhost:8080 max_fails=3 fail_timeout=3s; server localhost:8081 max_fails=3 fail_timeout=3s; } server { listen 80 default; server_name localhost; charset UTF-8; location / { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_hby yzhzx - Nginx Mailing List - English