Book Image

Nginx Essentials

By : Valery Kholodkov, Valery I Kholodkov
Book Image

Nginx Essentials

By: Valery Kholodkov, Valery I Kholodkov

Overview of this book

Table of Contents (13 chapters)

Managing temporary files


Managing temporary files is usually not a big deal, but you must be aware of it. Nginx uses temporary files to store transient data such as the following:

  • Large request bodies received from users

  • Large response bodies received from proxied servers or via FastCGI, SCGI, or UWCGI protocols.

In the Installing Nginx section of Chapter 1, Getting Started with Nginx, you saw the default location of temporary folders for these files. The following table lists the configuration directives that specify temporary folders for various Nginx core modules:

Directive

Purpose

client_body_temp_path

Specifies temporary path for client request body data

proxy_temp_path

Specifies temporary path for responses from proxied servers

fastcgi_temp_path

Specifies temporary path for responses from FastCGI servers

scgi_temp_path

Specifies temporary path for responses from SCGI servers

uwsgi_temp_path

Specifies temporary path for responses from UWCGI servers

The arguments of...