Nginx Basics and Minimal Configuration
March 1, 2023 · 5 min read

Directory Structure #
The Nginx root directory contains the following folders:
client_body_temp conf fastcgi_temp html logs proxy_temp sbin scgi_temp uwsgi_temp
Folders ending in _temp are used to store temporary files generated during operation.
The other main folders are:
- conf: stores configuration-related files
- html: the default directory for static files such as HTML and CSS files
- sbin: the main Nginx executable
- logs: stores various logs. For example,
accessrecords access-related information,errorrecords errors, andnginx.pidrecords the service’s PID, that is, its process ID.