http://nginx.org/en/docs/http/ngx_http_proxy_module.html
ngx_http_proxy_module
允许将请求传递给另一台服务器
示例配置
location / {
proxy_pass http://localhost:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
proxy_bind
语法:proxy_bind address [transparent] | off;
默认值:--
语境:http, server, location
在nginx0.8.22版本出现