HTTP directives
directio_alignment directive (HTTP)
Configure direct I/O alignment to match storage constraints; Linux XFS may require 4k. Context: http, server, location. Documented default: 512. Version: 0.8.11. OSS documentation; check target build. Example is a partial http configuration fragment; use a disposable lab, not a production tuning prescription.
Formal Syntax & Structure
nginx syntaxnginx
directio_alignment size;Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| size | byte size | Value for directio alignment. Use Nginx size suffixes where appropriate. |
Working Example
Example Snippetnginx
directio_alignment 4k;