Nginxで設定ファイルの構文チェックを実施する

-t — test the configuration file: nginx checks the configuration for correct syntax, and then tries to open files referred in the configuration.

http://nginx.org/en/docs/switches.html

nginx -t で設定ファイルのバリデーションを実行できます。引っかかった場合は異常終了してくれるので、DockerコンテナでNginxを運用してる方は イメージビルド時にチェックしてあげたりすると良さそうです。