My web application is being served by a NGINX web server.
After I make code changes to my NGINX configuration files, how do I verify they don't contain syntax errors before restarting the NGINX service?
Is there a simple command to do this?
nginx -t command.
It tests your configuration file for any syntax errors.
If it doesn't return any errors, you're good to go!
sudo nginx -t