SyntaxFix
Write A Post
Hire A Developer
Questions
As of nginx 1.8.0, the correct solution is
sudo nginx -t && sudo service nginx reload
Note that due to a bug, configtest always returns a zero exit code even if the config file has an error.
configtest