Nginx 413 Error Troubleshooting: Modifying upload file size limits

Source: Internet
Author: User

In the upload Nginx returned 413 error, view log file, the error message displayed is: "413 Request Entity Too Large", and then found the Internet under the "Nginx 413 error" To find the following settings:

In nginx.conf add client_max_body_size related settings, this value defaults to 1m, can be increased to 8m to increase the file size limit;

I set it to client_max_body_size 100m;

If you are running PHP, then you also need to check php.ini, which is client_max_body_size to match the maximum value of the following value in php.ini or slightly larger, so that no error occurs due to inconsistent submission data size.

Post_max_size = 8M
Upload_max_filesize = 2M

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.