nginx主备配置

添加配置:

proxy_next_upstream error timeout invalid_header http_500 http_503 http_502;

 

upstream http.weathertest.server

{

       server 192.168.194.240:6655 max_fails=1000 fail_timeout=120s ;

       server 192.168.194.240:6622 backup;

}

posted @ 2015-05-28 17:14  kabibo  阅读(1665)  评论(0编辑  收藏  举报