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

Advertisement

client_max_body_size 800M;

Restart nginx.

service nginx restart
Add a comment

Leave a Reply

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

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement