CLI options
nginx -T configuration dump
Tests and prints configuration files (since 1.9.2); may disclose sensitive content. Does not read the active workers’ in-memory settings. Synthetic fixtures only.
Formal Syntax & Structure
nginx syntaxnginx
nginx -T [-p prefix] [-c file]Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| prefix | path | Lab prefix |
| file | path | Selected configuration |
Working Example
Example Snippetnginx
nginx -e stderr -p "$LAB/" -c "$LAB/nginx.conf" -T