测试环境:windows7
Nginx版本:1.9.7
步骤:
修改conf\nginx.conf配置文件,在server节点中增加如下配置信息
location /test2 {
root html;
proxy_pass http://localhost:8081/test2;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 100m;
index index.html index.htm;
}