nginx学习之通过缓存加速反向代理:ngx_http_proxy_module

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版本出现

猜你喜欢

转载自blog.csdn.net/u010918487/article/details/89552721
今日推荐