proxy_set_header
语法 proxy_set_header header value
默认值 Host and Connection
上下文 http, server, location
proxy_pass http://localhost:8000;
proxy_set_header X-Real-IP $remote_addr; #真实ip
语法 proxy_set_header header value
默认值 Host and Connection
上下文 http, server, location
proxy_pass http://localhost:8000;
proxy_set_header X-Real-IP $remote_addr; #真实ip