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.

1
2
3
4
5
6
7
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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.