Nginx Cookbook: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
(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 <...")
 
(No difference)

Latest revision as of 04:32, 13 June 2020

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