The browser reports an error message (413 Request Entity Too Large) The file is too large, and the error thrown by Nginx limits the file size

Table of contents

Error message:

Reason for error:

Solution:


Error message:

413 Request Entity Too Large

 

Reason for error:

The uploaded file is too large, and Nginx limits the file size and throws an error (the default limit is 1 MB, and the size needs to be modified through the client_max_body_size parameter)

Solution:

Nginx can upload files up to 1MB by default. Open nginx.conf in http{} and find the server{} settings:
client_max_body_size 30m; (Configuring the maximum client request entity)
client_body_buffer_size 128k; (Configuring the request body buffer size)

Guess you like

Origin blog.csdn.net/tck001221/article/details/131375608