Nginx 413 Request Entity Too Large
On Nginx server, when uploading large file, i get error
1 |
413 Request Entity Too Large |
On nginx error log
1 |
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
1 |
client_max_body_size 800M; |
Restart nginx.
1 |
service nginx restart |