413 Request Entity Too Large

回覆文章
yehlu
Site Admin
文章: 3244
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

413 Request Entity Too Large

文章 yehlu »

http://www.cyberciti.biz/faq/linux-unix ... too-large/

/etc/nginx/nginx.conf

代碼: 選擇全部

# set client body size to 2M #
client_max_body_size 2M;
/etc/php/7.0/fpm/php.ini

代碼: 選擇全部

;This sets the maximum amount of memory in bytes that a script is allowed to allocate
memory_limit = 32M
 
;The maximum size of an uploaded file.
upload_max_filesize = 2M
 
;Sets max size of post data allowed. This setting also affects file upload. To upload large files, this value must be larger than upload_max_filesize
post_max_size = 3M
回覆文章

回到「nginx」