1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages/common/nginx.md

24 lines
427 B
Markdown
Raw Normal View History

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