ChsLoadBalanceExample
Revision as of 05:53, 30 September 2011 by MichaelLustfield (Talk)
[edit] 涓涓畝鍗曠殑璐熻浇鍧囪 鐨勭ず渚嬶紝鎶妛ww.domain.com鍧囪 鍒版湰鏈轰笉鍚岀殑绔彛锛屼篃鍙互鏀逛负鍧囪 鍒颁笉鍚岀殑鍦板潃涓娿
http { : upstream myproject { : server 127.0.0.1:8000 weight=3; : server 127.0.0.1:8001; : server 127.0.0.1:8002; : server 127.0.0.1:8003; : } : server { : listen 80; : server_name www.domain.com; : location / { : proxy_pass http://myproject; : } : } }