Testing NGINX config

To test Nginx config:
nginx -t
To test a specific config file:
nginx -t -c /etc/nginx/sites-enabled/example.com
To test Nginx config:
nginx -t
To test a specific config file:
nginx -t -c /etc/nginx/sites-enabled/example.com