mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-20 10:01:47 +00:00
Update cheatsheets
This commit is contained in:
10
tldr/nginx
10
tldr/nginx
@@ -6,19 +6,19 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# nginx
|
||||
|
||||
> Nginx web server.
|
||||
> More information: <https://nginx.org/en/>.
|
||||
> More information: <https://nginx.org/docs/switches.html>.
|
||||
|
||||
- Start server with the default configuration file:
|
||||
- Start the server with the default configuration file:
|
||||
|
||||
`nginx`
|
||||
|
||||
- Start server with a custom configuration file:
|
||||
- Start the server with a custom configuration file:
|
||||
|
||||
`nginx -c {{configuration_file}}`
|
||||
|
||||
- Start server with a prefix for all relative paths in the configuration file:
|
||||
- Start the server with a prefix for all relative paths in the configuration file:
|
||||
|
||||
`nginx -c {{configuration_file}} -p {{prefix/for/relative/paths}}`
|
||||
`nginx -c {{configuration_file}} -p {{path/to/prefix}}`
|
||||
|
||||
- Test the configuration without affecting the running server:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user