Problem
-
- Upload big size files using WordPress upload media
- You can upload it but in the end, there will be HTTP error
- In your Error Log, you will see something like
07 [error] 27585#27585: *1145328 client intended to send too large body: 383859820 bytes
- You’ve increased in your memory_limit, post_max_size, upload_max_filesize in your apache configuration at /home/user/conf/web/yourdomain.com/apache.conf
Solution
- Go to your nginx configuration. Probably at /home/user/conf/web/yourdomain.com/nginx.conf
- The trick is to put “client_max_body_size 200M;” in at least two places
http {}
andserver {}
: You may change the size according to your need. - Restart nginx by using command service nginx restart
- Done