1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 15:18:01 +00:00
Files
til/devops/reload-the-nginx-configuration.md
2015-06-15 08:40:05 -05:00

19 lines
656 B
Markdown

# Reload The nginx Configuration
If you've modified or replaced the configuration file, nginx will not
immediately start using the updated nginx configuration.
Once a `restart` or `reload` signal is received by nginx, it
will apply the changes. The `reload` signal
```
$ service nginx reload
```
tells nginx to reload the configuration. It will check the validity of the
configuration file and then spawn new worker processes for the latest
configuration. It then sends requests to shut down the old worker processes.
This means that during a *reload* nginx is always up and processing
requests.
[source](http://nginx.org/en/docs/beginners_guide.html)