Nginx - client intended to send too large body

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск


Ошибка nginx, например, при загрузке файлов больших размеров:

2014/09/06 23:41:09 [error] 6736#0: *4421 client intended to send too large body: 49519329 bytes, client: 78.27.xxx.xxx, server:
 playxxx.com, request: "POST /node/add/games HTTP/1.1", host: "playxxx.com", referrer: "http://playxxx.com/node/add/games"
2014/09/06 23:41:39 [error] 6736#0: *4479 client intended to send too large body: 49519329 bytes, client: 78.27.xxx.xxx, server:
 playxxx.com, request: "POST /node/add/games HTTP/1.1", host: "playxxx.com", referrer: "http://playxxx.com/node/add/games"


решается добавлением или изменением в блоке http - client_max_body_size :

# vi /etc/nginx/nginx.conf
http {
        client_max_body_size 200M;
}