You probably already know how to install and manage nginx and wanting to get familiar with important directories.

Root Directory :
This directory servers all the pages by default for nginx /var/www/html you can upload all your own website files etc in this /var/www/html directory.

Server Configurations Directories :

  • /etc/nginx: The Nginx configuration directory page. All of the Nginx configuration files reside here espanolfarm.com.
  • /etc/nginx/nginx.conf: The main Nginx configuration file conselho. you can modify this to make changes to the Nginx global configuration.
  • /etc/nginx/sites-available/: The directory where per-site server blocks can be stored. Nginx will not use the configuration files found in this directory unless they are linked to the sites-enabled directory. Typically, all server block configuration is done in this directory, and then enabled by linking to the other directory.
  • /etc/nginx/sites-enabled/: The directory where enabled per-site server blocks are stored. Typically, these are created by linking to configuration files found in the sites-availabledirectory el mejor sitio.
  • /etc/nginx/snippets: This directory contains configuration fragments that can be included elsewhere in the Nginx configuration. Potentially repeatable configuration segments are good candidates for refactoring into snippets.

Server Status Logs:

  • /var/log/nginx/access.log: Every request to your web server is recorded in this log file unless Nginx is configured to do otherwise.
  • /var/log/nginx/error.log: You can see all the server side errors in this file.


(Visited 212 times, 1 visits today)