
Nginx 负载均衡配置
总览在同一个upstream上配置多个server地址,配置权重等upstream test {
server localhost:1000 weight=2;
server localhost:1001 weight=1;
}示例http {
include mime.types;
default_type application/octet-...

Nginx 一主机多网站布署
配置https转发localhost:80 => 433433下分流,跟据Server_name转发localhost:80 www.ppos.com ppos.comlocalhost:8080 blog.ppos.com#upstream weibo {
# server http://node-server:3001;
#}
upstream blog {
...

Nginx 前后分理代理设置
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1...