Nginx Cookbook

From Littledamien Wiki
Revision as of 04:32, 13 June 2020 by Video8 (talk | contribs) (Created page with "== Starting, stoping, and restarting the server == <pre> $ sudo systemctl start nginx </pre> <pre> $ sudo systemctl stop nginx </pre> <pre> $ sudo systemctl restart nginx <...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Starting, stoping, and restarting the server[edit]

$ sudo systemctl start nginx
$ sudo systemctl stop nginx
$ sudo systemctl restart nginx

Confirming configuration[edit]

$ sudo nginx -t

Configuration location[edit]

  • /etc/nginx - Configuration directory
  • /etc/nginx/nginx.conf - nginx server configuration
  • /etc/nginx/conf.d/ - Custom configuration files