proxy_pass http://baidu.com;
location /mashibing { proxy_pass http://mashibing.com/; }
upstream httpd { server 192.168.43.152:80; server 192.168.43.153:80; }
指定轮询几率,weight和访问比率成正比,用于后端服务器性能不均的情况。
upstream httpds { server 127.0.0.1:8050 weight=10 down; server 127.0.0.1:8060 weight=1; server 127.0.0.1:8060 weight=1 backup; }
server { listen 443 ssl; server_name aa.abc.com; ssl_certificate /data/cert/server.crt; ssl_certificate_key /data/cert/server.key; }
https://freessl.cn
阿里云