Answers for "nginx The server sent HTTP status code 413: Request Entity Too Large"

8

413 request entity too large nginx

1.Edit nginx conf file 
$ sudo nano /etc/nginx/nginx.conf
#add following code in the http section:
http {
        client_max_body_size 100M;
}

2. Edit php.ini file
$ sudo nano /etc/php/8.0/php.ini
#Update following varaibles' values:
 max_input_time = 12000
 max_execution_time = 12000
 upload_max_filesize = 6000M
 post_max_size = 12000M
 memory_limit = 6000M

3. Restart nginx
$ sudo service nginx restart
Posted by: Guest on August-02-2021
2

error 413 request entity too large nginx

client_max_body_size 25m;
Posted by: Guest on February-03-2021

Code answers related to "nginx The server sent HTTP status code 413: Request Entity Too Large"

Browse Popular Code Answers by Language