nginx 413 Request Entity Too Large

March 18th 2014 by Jessica Legner

This error occured when I was tried to upload some photos to a friend's WordPress I have on my VPS. I just needed to increase the nginx size limit configuration for this site. To do this, add 'client_max_body_size xxM' where xx is the size in megabyes that you wish to allow. Example:

server {
    listen 80;
    server_name localhost;
    client_max_body_size 10M;