【记录】nginx 负载均衡配置
仅做负载均衡 upstream 简单场景记录,更多策略与参数可查阅官方文档http://nginx.org/en/docs/http/ngx_http_upstream_module.html#upstreamnginx.conf 片段upstream example_nginx_lb { server 127.0.0.2:80; server 127.0.0.3:80; } se
仅做负载均衡 upstream 简单场景记录,更多策略与参数可查阅官方文档http://nginx.org/en/docs/http/ngx_http_upstream_module.html#upstreamnginx.conf 片段upstream example_nginx_lb { server 127.0.0.2:80; server 127.0.0.3:80; } se
server { listen 80; server_name www.xxx.com; return 301 https://$host$request_uri; } server { listen 443; server_name www.xxx.com; ssl_certificate /etc/nginx/ssl/www.xxx.com.p