php - How to avoid Request Entity Too Large 413 error -
how avoid 413 error ?
request entity large
the requested resource /serverpath/reports.php not allow request data post requests, or amount of data provided in request exceeds capacity limit.
apache server @ demo3.website_name port 80
so, 1 please set php.ini , how set htaccess allow overwrite status
how fix in nginx? client_max_body_size
to fix this, need increase value of client_max_body_size directive. directive defines maximum amount of data nginx accept in http request. default value set 1 megabyte, meaning if attempt upload file larger 1 megabyte you'll getting error 413: request entity large page. can insert directive @ 3 levels:
in http block: set directive value server , locations in configurationn
in server block: set directive value locations of 1 particular server
in location block: set directive value 1 specific location in particular server
in example i'm going insert in http block , set 500 megabytes:
http { client_max_body_size 500m; # allows file uploads 500 megabytes [...] }
source: http://cnedelcu.blogspot.com.ar/2013/09/nginx-error-413-request-entity-too-large.html
Comments
Post a Comment