timerring

Nginx Basics and Minimal Configuration

March 1, 2023 · 5 min read
Tutorial
Network | Nginx

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, access records access-related information, error records errors, and nginx.pid records the service’s PID, that is, its process ID.
...