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