FAQ

Page Discussion Edit History

ChsLoadBalanceExample

Revision as of 05:53, 30 September 2011 by MichaelLustfield (Talk)

(diff) 鈫 Older revision | Latest revision (diff) | Newer revision 鈫 (diff)

[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;
: }
: }
}