Nginx 413 Request Entity Too Large

On Nginx server, when uploading large file, i get error

413 Request Entity Too Large

On nginx error log

2018/10/10 18:15:34 [error] 25787#0: *184 client intended to send too large body: 31354043 bytes, client: 15.17.7.27, server: _, request: "POST /phpmyadmin/import.php HTTP/1.1", host: "13.16.28.19"

To fix, edit nginx config for the web site, under the server section of the web site, add

client_max_body_size 800M;

Restart nginx.

service nginx restart

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *