Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the hueman domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/CloudIngenium.com/htdocs/wp-includes/functions.php on line 6114
How to: Reload your NginX Configuration – Knowledge eXchange

How to: Reload your NginX Configuration

How to: Reload your NginX Configuration

Sometimes when working with NginX you come across the need to reload your configuration for the changes made to your .conf files take place. Although this is a simple task some considerations and best practices should be followed for optimal results:

  1. Verify that your configuration files “compile”. Execute nginx -t to test that the .conf files are well formatted, the syntax is correct and the directives were allowed. If you don’t do this and try to reload the configuration it would either result on no configuration to be loaded or your previous configuration to remain there and hence the changes you made are not applied.
  2. Run service nginx reload or /etc/init.d/nginx reload

What this is going to do is effectively reload your configuration. Worker processes that are active will keep the old configuration until they become free while available ones will stop and restart with the new configuration. This is a very smooth way to make a change to the configuration without having some downtime from restarting the NginX server.

As mentioned above ALWAYS check the configuration files at least load. If you did a service stop you couldn’t start back up until you had fixed the issues in your configuration files and that could result in significant downtime.

Enhanced by Zemanta

You may also like...

1 Response

  1. February 19, 2014

    […] You need to reload your configuration once you make this changes as indicated here: How to: Reload your NginX Configuration […]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.