代理服务
Last updated
Last updated
正向代理代理的对象是客户端
反向代理代理的对象是服务端
proxy
缓冲区
跳转重定向
头信息
超时
语法
proxy_pass URL
proxy_buffering on | off
proxy_redirect default | off | redirect replacement
proxy_set_header field value
proxy_connect_timeout time
默认
---
proxy_buffering on
proxy_redirect default
proxy_set_header Host $proxy_host proxy_set_header Connection close
proxy_connect_timeout 60s
作用域
location,if in location, limit_except
http,server,location
http,server,location
http,server,location
http,server,location
扩展
proxy_buff_size proxy_buffers proxy_busy_buffers_size
proxy_hide_header proxy_set_boby
proxy_read_timeout proxy_send_timeout
备注
代理的时候如果是302重定向了需要这个