反向代理
1.反向代理使用权重轮询
-bash-4.2# nginx -s stop
-bash-4.2# nginx-bash-4.2# nginx -s reloadupstream test {
server test1.com;
server test2.com;
}
location / {
proxy_pass http://test;
}2.反向代理中使用哈希
3.设置备用后端服务
最后更新于