Request Entity too large when uploading themes in wordpress
Original Post Date: 11:54 pm, May 17, 2015
So i came across this one the other day when uploading a theme that was only about 1 meg to a wordpress site that i run on a nginx server.
I checked the php.ini and the max upload size it was set to 16meg, so it was not that. I found that it was a NGINX setting causing this issue.
You have to add this bit to your server file for the wordpress site: client_max_body_size 20M;
See the code below for the full server file for a wordpress site running on nginx.
Edit: also remember to restart nginx when applying this change! otherwise it will have no effect. service nginx restart