nginx配置反向代理

2019-01-09

1.http反向代理例子

xiaomi.conf

1
2
3
4
5
6
7
8
9
10
server {
listen 80;
server_name nginx.myi-cloud.com;
client_max_body_size 1024M;

location / {
proxy_pass http://172.16.10.221;
proxy_set_header Host $host:$server_port;
}
}