nginx Reload NGINX configuration file


Example

As a root user:

sudo nginx -s reload

Ubuntu 14.04 example

sudo service nginx reload

Ubuntu 16.04 example

sudo systemctl reload nginx

Before reloading, it is a good idea to check config for syntax errors:

sudo nginx -t

Or

sudo service nginx configtest