HTTP directives
client_body_early_read directive (HTTP)
Evaluate conditions for reading the body before location handling. Use zero to leave early read inactive. Context: http, server. Documented default: none. Version: 1.31.5. OSS documentation; check target build. Incompatible with unbuffered handlers and DAV; early reading ignores client_body_in_file_only. Server-level body settings apply. Example is a partial http configuration fragment; use a disposable lab, not a production tuning prescription.
Formal Syntax & Structure
nginx syntaxnginx
client_body_early_read string ...;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| string | expression (repeatable) | Any evaluated nonempty, nonzero value enables early body reading. |
Working Example
Example Snippetnginx
client_body_early_read 0;