Name

request_body_max_size

Synopsis

This directive, if nonzero, places an upper limit on the size of a client’s HTTP request body. Most requests (i.e., GET requests) don’t have request bodies. This directive applies to PUT and POST requests. A request that exceeds this limit generates a 413 (Request Entity Too Large) error response.

Syntax

request_body_max_size size-specification

Default

No limit

Example

request_body_max_size 100 KB

Related

request_header_max_size, reply_body_max_size

Get Squid: The Definitive Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.