1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 17:22:10 +02:00
tldr/pages/common/nginx.md
Vitor Henrique af35564618
pages*: do not use config abbreviation (#12118)
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2024-01-25 10:59:16 +05:30

530 B

nginx

Nginx web server. More information: https://nginx.org/en/.

  • Start server with the default configuration file:

nginx

  • Start server with a custom configuration file:

nginx -c {{configuration_file}}

  • Start server with a prefix for all relative paths in the configuration file:

nginx -c {{configuration_file}} -p {{prefix/for/relative/paths}}

  • Test the configuration without affecting the running server:

nginx -t

  • Reload the configuration by sending a signal with no downtime:

nginx -s reload