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