0
0
Nginxdevops~10 mins

Include directive for modular config 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 a configuration file named extra.conf.

Nginx
include [1];
Drag options to blanks, or click blank then click option'
Aextra.conf;
Bextra.conf
C"extra.conf"
D/etc/nginx/extra.conf
Attempts:
3 left
💡 Hint
Common Mistakes
Adding a semicolon inside the file path
Using quotes around the file path
2fill in blank
medium

Complete the code to include all configuration files ending with .conf from the sites-enabled directory.

Nginx
include /etc/nginx/sites-enabled/[1];
Drag options to blanks, or click blank then click option'
A*.txt
Bsites.conf
C*.conf
Dall.conf
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect file extensions
Not using a wildcard for multiple files
3fill in blank
hard

Fix the error in the include directive to properly include custom.conf.

Nginx
include [1];
Drag options to blanks, or click blank then click option'
A"custom.conf"
Bcustom.conf;
C"custom.conf";
Dcustom.conf
Attempts:
3 left
💡 Hint
Common Mistakes
Including semicolon inside the file path
Using quotes around the file path
4fill in blank
hard

Fill both blanks to include all .conf files from conf.d directory inside /etc/nginx/.

Nginx
include [1]/[2];
Drag options to blanks, or click blank then click option'
A/etc/nginx/conf.d
B/etc/nginx/sites-available
C*.conf
D*.nginx
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong directory path
Using incorrect file pattern
5fill in blank
hard

Fill all three blanks to include default.conf from sites-available directory inside /etc/nginx/.

Nginx
include [1]/[2]/[3];
Drag options to blanks, or click blank then click option'
A/etc/nginx
Bsites-available
Cdefault.conf
Dconf.d
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing directory names
Using wrong file name