Nginx 413 Request Enity Too Large

01. Modify nginx.conf to resolve it

cd  /etc/nginx/conf/     # go to your own directore to find nginx.conf

vi nginx.conf

# find "client_max_body_size 10m;"

# adjust "10m" to the number you want, such as "100m"

02. The difference between ” http”, “server”, “location”

in http(), affect the size of the request file (attachments) entirely;

in server(), affect the size of request file (attachments) only in this "server ()" territory;

in location(), affect the size of request file (attachments) only in this "location ()" territory;
Scroll to Top