February 2018
Beginner to intermediate
348 pages
9h 40m
English
As you can imagine, this tiny bit of detail might become an important issue if you constantly tweak your configuration. The slightest mistake in any of the configuration files can result in a loss of control over the service—you are then unable to stop it via regular init control commands, and obviously, it will refuse to start again.
In consequence, the following command will be useful to you in many occasions. It allows you to check the syntax, validity, and integrity of your configuration:
[alex@example.com ~]$ /usr/local/nginx/sbin/nginx -t
The -t switch stands for test configuration. Nginx will parse the configuration anew and let you know whether it is valid or not. A valid configuration file does not necessarily ...
Read now
Unlock full access