NGINX Files and Directories
/etc/nginx
Default configuration root for the NGINX server.
-
/etc/nginx/nginx.conf
- Default configuration entry point used by the NGINX service. Sets up worker processes, tuning, logging, loading dynamic modules and references to other NIGNX configuration files. -
/etc/nginx/conf.d/
- Directory that contains the default HTTP server configuration file. Files in this directory ending in.conf
are included in the top-levelhttp
block from within the/etc/nginx/nginx.conf
file. The best practice is to utulizeinclude
statements and organize your configuration in this way to keep your configuration files concise. -
/var/log/nginx
- The/var/log/nginx
directory is the default log location for NGINX and includes anaccess.log
containing an entry for each request served by NGINX and anerror.log
.