mirror of https://github.com/CrimsonTome/tldr.git
24 lines
427 B
Markdown
24 lines
427 B
Markdown
# nginx
|
|
|
|
> Nginx web server.
|
|
|
|
- Start server with default config:
|
|
|
|
`nginx`
|
|
|
|
- Start server with custom config file:
|
|
|
|
`nginx -c {{config_file}}`
|
|
|
|
- Start server with a prefix for all relative paths in config file:
|
|
|
|
`nginx -c {{config_file}} -p {{prefix/for/relative/paths}}`
|
|
|
|
- Test configuration without affecting the running server:
|
|
|
|
`nginx -t`
|
|
|
|
- Reload configuration by sending a signal with no downtime:
|
|
|
|
`nginx -s reload`
|