- upstream tomcats{
- server 192.168.25.148:8080;
- server 192.168.25.148:8081;
- }
- server {
- listen 80;
- server_name tomcat.taotao.com;
- #charset koi8-r;
- #access_log logs/host.access.log main;
- location / {
- proxy_pass http://tomcats;
- index index.html index.htm;
- }
- }
来源: http://www.bubuko.com/infodetail-3032147.html