Nginx - client intended to send too large body

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Перейти к:навигация, поиск
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


Ошибка 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;
}