tldr/pages/common/nginx.md

20 lines
341 B
Markdown
Raw Normal View History

2015-12-20 11:23:33 +03:00
# nginx
> nginx web server
2015-12-20 11:23:33 +03:00
- Start server with default config
`nginx`
2015-12-20 12:00:17 +03:00
- Start server with custom config file
2015-12-20 11:23:33 +03:00
2015-12-20 12:00:17 +03:00
`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}}`
2016-01-04 13:34:40 +03:00
- Test configuration without affecting the running server
`nginx -t`