Complete the code to start the Nginx service on a Linux system.
sudo systemctl [1] nginxThe start command launches the Nginx service so it begins running.
Complete the Nginx configuration line to listen on port 80.
listen [1];Port 80 is the default port for HTTP traffic, which Nginx listens to by default.
Fix the error in the Nginx server block to serve files from the correct root directory.
server {
root [1];
}The root directory for serving web files in Nginx is usually /var/www/html.
Complete the code to create a simple Nginx location block that serves static files.
location / {
root {BLANK_2}};
The location block starts with a curly brace { and the root points to the static files directory.
Fill all three blanks to define a server block that listens on port 80, serves from /var/www/html, and uses index.html as the default file.
server {
listen [1];
root [2];
index [3];
}The server listens on port 80, serves files from /var/www/html, and uses index.html as the default page.