Nginx入门(二)——双机热备

 1 upstream backend {
 2         server 192.168.1.247:8086;
 3         server 192.168.1.247:8020 backup;
 4     }
 5 
 6     server {
 7         listen       20000;
 8         server_name  localhost;
 9 
10         #charset koi8-r;
11 
12         #access_log  logs/host.access.log  main;
13 
14         location / {
15             root   html;
16             index  index.html index.htm;
17         proxy_pass   http://backend;
18         }
19     }
原文地址:https://www.cnblogs.com/zyxiaohuihui/p/11187554.html