Here's a helpful tip for those using #Linux or #Unix web servers. Before you hit that reload command, it's always a good idea to test your server config file for syntax errors. You can do this easily as follows:
- For nginx: nginx -t
- For lighttpd: lighttpd -t -f lighttpd.conf
- For apache2: apache2 -t
If you want to check for syntax errors on other Linux/Unix servers, I have compiled a complete list for you https://www.cyberciti.biz/tips/check-unix-linux-configuration-file-for-syntax-errors.html