0
0
Nginxdevops~10 mins

Nginx vs Apache comparison - Interactive Practice

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

Complete the code to start the Nginx service using systemctl.

Nginx
sudo systemctl [1] nginx
Drag options to blanks, or click blank then click option'
Astop
Brestart
Cstatus
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'stop' instead of 'start'.
Using 'status' which only shows service state.
2fill in blank
medium

Complete the code to reload Nginx configuration without stopping the service.

Nginx
sudo systemctl [1] nginx
Drag options to blanks, or click blank then click option'
Areload
Benable
Cstart
Dstop
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'restart' which causes brief downtime.
Using 'enable' which sets auto-start but doesn't reload.
3fill in blank
hard

Fix the error in the Nginx configuration test command.

Nginx
sudo nginx -t [1]
Drag options to blanks, or click blank then click option'
A-c /etc/nginx/nginx.conf
B-x
C-z
D-v
Attempts:
3 left
💡 Hint
Common Mistakes
Using invalid flags like '-x' or '-z'.
Confusing '-v' (version) with test.
4fill in blank
hard

Fill both blanks to create a basic Nginx server block listening on port 80 and serving files from /var/www/html.

Nginx
server {
    listen [1];
    root [2];
}
Drag options to blanks, or click blank then click option'
A80
B/var/www/html
C443
D/usr/share/nginx/html
Attempts:
3 left
💡 Hint
Common Mistakes
Using port 443 which is for HTTPS.
Using wrong root directory paths.
5fill in blank
hard

Fill all three blanks to write an Apache command that enables the rewrite module, restarts Apache, and checks its status.

Nginx
sudo a2enmod [1] && sudo systemctl [2] apache2 && sudo systemctl [3] apache2
Drag options to blanks, or click blank then click option'
Arewrite
Brestart
Cstatus
Dssl
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'ssl' instead of 'rewrite' for module.
Using 'start' instead of 'restart' after enabling module.