Complete the code to set the maximum allowed client request size to 10 megabytes.
client_max_body_size [1];The correct directive value is 10m which means 10 megabytes in nginx configuration.
Complete the code to set the client request size limit to 5 megabytes inside the server block.
server {
[1] 5m;
}The directive client_max_body_size sets the maximum allowed size of the client request body.
Fix the error in the directive to correctly limit client request size to 20 megabytes.
client_max_body_size [1];The correct unit is lowercase 'm' for megabytes in nginx configuration.
Fill both blanks to set the client max body size to 15 megabytes and enable the setting inside the http block.
http {
[1] [2];
}The directive client_max_body_size sets the limit, and 15m specifies 15 megabytes.
Fill all three blanks to create a location block that limits client request size to 8 megabytes and returns a 413 error if exceeded.
location /upload {
[1] [2];
error_page 413 [3];
}The client_max_body_size directive limits the size, 8m sets 8 megabytes, and 413.html is the error page served on size limit exceeded.