Skip to content

Instantly share code, notes, and snippets.

@therealechan
Created September 15, 2015 05:52
Show Gist options
  • Save therealechan/f0fe6d02df4d6cc916b7 to your computer and use it in GitHub Desktop.
Save therealechan/f0fe6d02df4d6cc916b7 to your computer and use it in GitHub Desktop.
Nginx: 413 Request Entity Too Large Error and Solution

sudo vi /opt/nginx/conf/nginx.conf

Add the following line to http or server or location context to increase the size limit in nginx.conf, enter:

# set client body size to 2M #
client_max_body_size 2M;
$ service nginx reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment