From the course: Learning NGINX

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Troubleshoot NGINX

Troubleshoot NGINX - Nginx Tutorial

From the course: Learning NGINX

Troubleshoot NGINX

- [Instructor] As you're working with NGINX, there may come a time where things just aren't going the way you think they should. Here are a few tools and ideas you can use to troubleshoot and resolve some of the typical problems you might encounter. Configuration errors are easy to catch with the NGINX -T command. This is especially useful after making changes to any NGINX config files. If there's a typo in one of your configuration files, NGINX -T will identify the error and the file it occurs in, along with a line number. In this example, I've misspelled the server keyword. This is an easy fix. Also check for typos in your root and server name directives. In some cases, typos won't be flagged when you test the configuration. In this example, HTM1 should really be HTML and www.examples.com with an S should be www.example.com with no S. Keep an eye out for elusive errors like these. But what about…

Contents