2025-03-14 21:59:59 -06:00
|
|
|
# nginx
|
|
|
|
|
|
|
|
|
|
> Nginx web server.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://nginx.org/docs/switches.html>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Start the server with the default configuration file:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`nginx`
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Start the server with a custom configuration file:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
`nginx -c {{configuration_file}}`
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
- Start the server with a prefix for all relative paths in the configuration file:
|
2025-03-14 21:59:59 -06:00
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`nginx -c {{configuration_file}} -p {{path/to/prefix}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Test the configuration without affecting the running server:
|
|
|
|
|
|
|
|
|
|
`nginx -t`
|
|
|
|
|
|
|
|
|
|
- Reload the configuration by sending a signal with no downtime:
|
|
|
|
|
|
|
|
|
|
`nginx -s reload`
|