HTTP directives
directio directive (HTTP)
Select a file-size threshold for direct disk I/O. Benchmark large downloads separately from small assets. Context: http, server, location. Documented default: off. Version: 0.7.7. OSS documentation; check target build. Disables sendfile for affected requests; filesystem and alignment matter. Example is a partial http configuration fragment; use a disposable lab, not a production tuning prescription.
Formal Syntax & Structure
nginx syntaxnginx
directio size | off;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| threshold | byte size | off | Files at or above threshold use supported direct I/O; off disables. |
Working Example
Example Snippetnginx
directio 16m;