mirror of
https://github.com/the-spellman/tech-docs-md
synced 2024-10-29 22:47:52 +00:00
Create testing-nginx-configs.md
This commit is contained in:
parent
ed1b239d44
commit
6e2eb84685
1 changed files with 15 additions and 0 deletions
15
testing-nginx-configs.md
Normal file
15
testing-nginx-configs.md
Normal file
|
@ -0,0 +1,15 @@
|
|||
# Testing NGINX configs
|
||||
|
||||
## Run the test command
|
||||
|
||||
Run it by executing this commnand in the terminal:
|
||||
|
||||
```nginx -t```
|
||||
|
||||
## Interpret output
|
||||
|
||||
* If the configs were valid and have no syntax errors, you'll see an output like:
|
||||
|
||||
```nginx: configuration file /etc/nginx/nginx.conf test is successful```
|
||||
|
||||
* If there are errors/warnings, nginx will provide details.
|
Loading…
Reference in a new issue