proxy_pass_request_body

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

Indicates whether the original request body is passed to the proxied server.

location /x-accel-redirect-here/ {
    proxy_method GET;
    proxy_pass_request_body off;
    proxy_set_header Content-Length "";

    proxy_pass ...
}

See also the proxy_set_header and proxy_pass_request_headers directives.

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

Please login to continue.