Format README, Add Verify Config & Restart Nginx Command.

This commit is contained in:
Syed I.R 2014-06-23 00:13:43 +05:30 committed by AD7six
parent 03dc5e07e6
commit fc53165d01
2 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# [Nginx Server Configs](https://github.com/h5bp/server-configs-nginx) # [Nginx Server Configs](https://github.com/h5bp/server-configs-nginx)
**Nginx Server Configs** is a collection of configuration snippets that can **Nginx Server Configs** is a collection of configuration snippets that can help
help your server improve the web site's performance and security, while also your server improve the web site's performance and security, while also
ensuring that resources are served with the correct content-type and are ensuring that resources are served with the correct content-type and are
accessible, if needed, even cross-domain. accessible, if needed, even cross-domain.

View File

@ -67,3 +67,8 @@ Activate the new site by linking `yourdomainname.com` into the `sites-enabled` d
This will make the server active the next time nginx (re)starts. This will make the server active the next time nginx (re)starts.
## Verify config and restart nginx ## Verify config and restart nginx
Verify the config and restart nginx to apply the changes.
nginx -tt && service nginx restart
This will verify the config and on successful verification it'll restart the nginx, otherwise throws error and stops from restarting nginx.