Nginx负载均衡配置
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; } }
转载请注明原处