0
0
Nginxdevops~10 mins

MIME types configuration 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 include the MIME types file in the nginx configuration.

Nginx
include [1];
Drag options to blanks, or click blank then click option'
A/usr/local/nginx/mime.types
B/etc/nginx/conf.d/mime.types
C/etc/nginx/mime.conf
D/etc/nginx/mime.types
Attempts:
3 left
💡 Hint
Common Mistakes
Using a wrong path like /etc/nginx/mime.conf which does not exist.
Forgetting to include the MIME types file, causing incorrect content types.
2fill in blank
medium

Complete the MIME type declaration for .json files in the mime.types file.

Nginx
application/[1] json;
Drag options to blanks, or click blank then click option'
Axml
Bjavascript
Cjson
Dplain
Attempts:
3 left
💡 Hint
Common Mistakes
Using application/javascript which is for .js files.
Confusing plain text with JSON MIME type.
3fill in blank
hard

Fix the error in the MIME type declaration for .html files.

Nginx
text/[1] html;
Drag options to blanks, or click blank then click option'
Ahtm
Bhtml
Cplain
Dxml
Attempts:
3 left
💡 Hint
Common Mistakes
Using htm instead of html causes mismatch.
Using plain or xml for HTML files.
4fill in blank
hard

Fill both blanks to define the MIME type for .css files correctly.

Nginx
[1]/[2] css;
Drag options to blanks, or click blank then click option'
Atext
Bapplication
Ccss
Dplain
Attempts:
3 left
💡 Hint
Common Mistakes
Using application/css which is incorrect.
Using plain/css which is invalid.
5fill in blank
hard

Fill both blanks to create a MIME types map for .png and .jpg files.

Nginx
{BLANK_1}} { { image/png png; {{BLANK_2}} jpg; };
Drag options to blanks, or click blank then click option'
Atypes
B{
Cimage/png
Dimage/jpeg
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting the braces or using wrong keywords.
Mixing up MIME types for png and jpg files.