0
0
Nginxdevops~10 mins

Request size limits (client_max_body_size) in Nginx - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the maximum allowed client request size to 10 megabytes.

Nginx
client_max_body_size [1];
Drag options to blanks, or click blank then click option'
A10mb
B10m
C10MB
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Using uppercase 'MB' instead of lowercase 'm'.
Omitting the unit suffix.
2fill in blank
medium

Complete the code to set the client request size limit to 5 megabytes inside the server block.

Nginx
server {
    [1] 5m;
}
Drag options to blanks, or click blank then click option'
Aclient_body_timeout
Bclient_body_buffer_size
Cclient_max_body_size
Dclient_header_timeout
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing with buffer size or timeout directives.
3fill in blank
hard

Fix the error in the directive to correctly limit client request size to 20 megabytes.

Nginx
client_max_body_size [1];
Drag options to blanks, or click blank then click option'
A20M
B20MB
C20mb
D20m
Attempts:
3 left
💡 Hint
Common Mistakes
Using uppercase 'MB' or 'M' instead of lowercase 'm'.
4fill in blank
hard

Fill both blanks to set the client max body size to 15 megabytes and enable the setting inside the http block.

Nginx
http {
    [1] [2];
}
Drag options to blanks, or click blank then click option'
Aclient_max_body_size
B15m
Cclient_body_timeout
D10m
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong directive names or wrong size units.
5fill in blank
hard

Fill all three blanks to create a location block that limits client request size to 8 megabytes and returns a 413 error if exceeded.

Nginx
location /upload {
    [1] [2];
    error_page 413 [3];
}
Drag options to blanks, or click blank then click option'
Aclient_max_body_size
B8m
C413.html
Dclient_body_buffer_size
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong directive names or missing error page.