Skip to content

Latest commit

 

History

History
13 lines (8 loc) · 422 Bytes

validate-configuration.md

File metadata and controls

13 lines (8 loc) · 422 Bytes

Validate Configuration

Category: Nginx

You can safely validate Nginx configuration with the following command:

/usr/bin/nginx -t -c ~/mynginx.conf 

The -t flag will test for the correct syntax and then try to open files referred in the configuration file with -c without permanently running the process.

This command should be used to validate configuration changes before a restart of Nginx.