Thursday, November 17, 2022

Nginx Error 413, Request Entity Too Large

What is 413 Error?

413 HTTP error occurs when the size of a client’s request exceeds the server’s file size limit. This happens when a client attempts to upload a large file to a Nginx server.


Let's fix this.

The directive which determines what the allowable HTTP request size can be is client_max_body_size. You can add that directive in either an http, server, or location block in nginx.conf file located at /etc/nginx/nginx.conf.

server {
    client_max_body_size 100M; #As much as you can set according to your use case.
    ...
}

No comments:

Post a Comment

What is DevOps? DevOps Kya hai?

DevOps is not a tool or a software. DevOps simply is a hassle free process to implement, develop and deliver the product to client. It'...