proxy_pass_request_headers

Syntax: proxy_pass_request_headers on | off;
Default: proxy_pass_request_headers on;
Context: http, server, location

Indicates whether the header fields of the original request are passed to the proxied server.

location /x-accel-redirect-here/ {
    proxy_method GET;
    proxy_pass_request_headers off;
    proxy_pass_request_body off;

    proxy_pass ...
}

See also the proxy_set_header and proxy_pass_request_body directives.

doc_nginx
2017-02-09 07:08:25
Comments
Leave a Comment

Please login to continue.