HTTP proxy directives

proxy_buffer_size directive (HTTP proxy)

HTTP, server, location contexts. Default one memory page (usually 4k or 8k); initial response buffer including headers. Oversized headers can make the response invalid.

Formal Syntax & Structure

nginx syntaxnginx
proxy_buffer_size size;

Parameters & Attributes

NameTypeDescription
sizebyte sizeBuffer for initial origin response, including headers.

Working Example

Example Snippetnginx
proxy_buffer_size 8k;
Nginx Reference