HTTP proxy directives

proxy_max_temp_file_size directive (HTTP proxy)

HTTP, server, location contexts. Default 1024m; limits ordinary response spill file size. Zero disables ordinary response spill, not disk caching or proxy_store.

Formal Syntax & Structure

nginx syntaxnginx
proxy_max_temp_file_size size;

Parameters & Attributes

NameTypeDescription
sizebyte sizeMaximum temporary response file size; zero disables ordinary response spill, not cached or stored responses.

Working Example

Example Snippetnginx
proxy_max_temp_file_size 0;
Nginx Reference