您的位置:首页 > 运维架构 > Nginx

Nginx负载均衡配置

2016-03-31 18:19 543 查看
upstream abc.com{
server 192.168.66.121;#域名无效,负载均衡实质是内网发挥作用,用域名就走外网了,没意义
server 192.168.66.122;
}
server {
listen 8005;
server_name 192.168.6.120:8005;
log_not_found off;
access_log  /var/log/nginx/html-access.log  main;
charset utf-8;
location / {
proxy_pass http://abc.com; }
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: