![]() ![]() Now you shouldn’t see this error while uploading files under 250Mb. Nginx: configuration file /etc/nginx/nf test is successfulĪnd finally, restart the server: $ sudo systemctl reload nginx Nginx: the configuration file /etc/nginx/nf syntax is ok Next step is to check the configuration of Nginx is OK: $ nginx -t Since Nginx is managed by Beanstalk, I am trying to update the limit via. I looked around on the internet and learned that this issue is caused by Nginx and the solution is to increase the clientmaxbodysize. Then you have to add or modify the next configuration in the http section. Im seeing a bunch of 'client intended to send too large body' errors on image upload. This limitation is defined in the Nginx web server, so I have to changed the configuration of the server: $ sudo vi /etc/nginx/nf In the nginx error log I saw the error “Client intended to send too large body” in this entry: $ tail -f /var/log/nginx/*error*.logġ 14:31:04 884#884: *126565 client intended to send too large body: 1195619 bytes, client: 55.173.250.46, server:, request: "POST /wp-json/wp/v2/media?_locale=user HTTP/2.0", host: "", referrer: "" Files larger then 100MB fails to upload.I have faced an issue in a web server using Nginx while trying to upload a file using wordpress. I am really hopeless now and not sure what to do. #access_log /var/log/nginx/access.log main # '"$http_user_agent" "$http_x_forwarded_for"' # '$status $body_bytes_sent "$http_referer" ' ![]() #log_format main '$remote_addr - $remote_user "$request" ' ![]() #error_log /var/log/nginx/error.log info #error_log /var/log/nginx/error.log notice In my server logs I see this nginx error : 15271#0: *307 client intended to send too large body: 710634025 bytes The website is in wordpress and I can't even upload a file larger then 100mb from wordpress media uploader or through any other form.įrom media uploader it gives this error in the ajax post request : POST PHP versoin : 7.0.12 set to run php at fastCGI application served by apache I did asked my hosting support to restart the nginx and php fpm service too. I know that this question has been asked multiple times but I have tried all of them and updated client_max_body_size to 0 and to even 16400M but it didn't help. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |