HTTP directives
proxy_pass_request_body directive (HTTP)
Contexts: http, server, location. Default: on. Controls forwarding of the original request body; review framing headers when disabling.
Formal Syntax & Structure
nginx syntaxnginx
proxy_pass_request_body on | off;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| state | on | off | Forward original body when on. Review Content-Length and other framing when off. |
Working Example
Example Snippetnginx
proxy_pass_request_body off;proxy_set_header Content-Length "";