From 7cae83a0cf2f56e64f2ac795316fa65c2373d777 Mon Sep 17 00:00:00 2001 From: "Syed I.R" Date: Sun, 29 Jun 2014 17:20:31 +0530 Subject: [PATCH] Fix typo, Update/Add Nginx Command to test a particular config file, Update Restart Command & Comments. --- doc/getting-started.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/doc/getting-started.md b/doc/getting-started.md index 1c7d412..721a28f 100644 --- a/doc/getting-started.md +++ b/doc/getting-started.md @@ -69,6 +69,18 @@ This will make the server active the next time nginx (re)starts. ## Verify config and restart nginx Verify the config and restart nginx to apply the changes. - nginx -tt && service nginx restart +To verify nginx config (Tests default nginx config file) -This will verify the config and on successful verification it'll restart the nginx, otherwise throws error and stops from restarting nginx. \ No newline at end of file + nginx -t + +**OR** + +To verify a particular nginx config file + + nginx -t -c nginx.conf + +This will test the nginx config file and throws error if any. Otherwise test is successful and you can restart nginx. + +Finally restart nginx to apply the changes + + /etc/init.d/nginx restart