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

NameTypeDescription
prefixpathLab prefix
filepathSelected configuration

Working Example

Example Snippetnginx
nginx -e stderr -p "$LAB/" -c "$LAB/nginx.conf" -T
Nginx Reference