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