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     }

 

posted @ 2019-07-15 10:49  取什么昵称呢  阅读(275)  评论(0编辑  收藏  举报