This article is a mirror article of machine translation, please click here to jump to the original article.

View: 2622|Reply: 0

Nginx:413 Request Entity Too Large

[Copy link]
Posted on 3/30/2023 10:00:50 AM | | | |
Requirements: To reverse proxy an application with nginx to asp.net core, there is an interface to upload files, and after deploying to the test environment, upload the interface prompt413 Request Entity Too LargeError, here is the direct return of nginx, proving that the request has not reached the backend service, as shown in the image below:




HTTP 413 error, (request entity too large), is a type of HTTP protocol status code that indicates "request entity too large". This error code is returned when the requested entity is too large to exceed the server's processing capacity, causing the server to be unable to process the request.
WCF error: 413 Request Entity Too Large
https://www.itsvse.com/thread-2976-1-1.html

Tip: Workaround for 413 Request Entity Too Large
https://www.itsvse.com/thread-2690-1-1.html
solution

Modify the nginx configuration,client_max_body_size The default size is 1M, official documentation:The hyperlink login is visible.

Files up to 100M are allowed to be uploaded, and the configuration is modified as follows:

client_max_body_size can be configured in http, server, location!

(End)




Previous:【Practical Combat】Register a ChatGPT account tutorial
Next:Switch to open access to the specified port under Linux
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com