2015-12-20 11:23:33 +03:00
|
|
|
# nginx
|
|
|
|
|
2016-01-07 20:31:27 +03:00
|
|
|
> Nginx web server.
|
2019-06-03 03:06:36 +03:00
|
|
|
> More information: <https://nginx.org/en/>.
|
2015-12-20 11:23:33 +03:00
|
|
|
|
2017-10-11 19:11:20 +03:00
|
|
|
- Start server with the default config file:
|
2015-12-20 11:23:33 +03:00
|
|
|
|
|
|
|
`nginx`
|
|
|
|
|
2017-10-11 19:11:20 +03:00
|
|
|
- Start server with a custom config file:
|
2015-12-20 11:23:33 +03:00
|
|
|
|
2015-12-20 12:00:17 +03:00
|
|
|
`nginx -c {{config_file}}`
|
|
|
|
|
2017-10-11 19:11:20 +03:00
|
|
|
- Start server with a prefix for all relative paths in the config file:
|
2015-12-20 12:00:17 +03:00
|
|
|
|
|
|
|
`nginx -c {{config_file}} -p {{prefix/for/relative/paths}}`
|
2016-01-04 13:34:40 +03:00
|
|
|
|
2017-10-11 19:11:20 +03:00
|
|
|
- Test the configuration without affecting the running server:
|
2016-01-04 13:34:40 +03:00
|
|
|
|
|
|
|
`nginx -t`
|
2016-01-10 14:22:06 +03:00
|
|
|
|
2017-10-11 19:11:20 +03:00
|
|
|
- Reload the configuration by sending a signal with no downtime:
|
2016-01-10 14:22:06 +03:00
|
|
|
|
|
|
|
`nginx -s reload`
|