Check the nginx configuration for syntax errors
nginx config test command | nginx won't start after config change | nginx syntax is ok check | find nginx configuration error | nginx | configuration | syntaxnginx -tReads /etc/nginx/nginx.conf including all includes and reports syntax is ok and test is successful, or the faulty file with its line number. The running service is left untouched. Run it after every manual change.
Note: Warnings such as conflicting server name are not syntax errors, but they point to duplicate server_name entries, of which only one takes effect.
Also searched as
- nginx config test command
- nginx won't start after config change
- nginx syntax is ok check
- find nginx configuration error