Complete the code to include the site configuration file in nginx main config.
include [1];The include directive with /etc/nginx/sites-enabled/* includes all enabled site configs.
Complete the command to create a symbolic link for site1 config from sites-available to sites-enabled.
ln -s [1] /etc/nginx/sites-enabled/site1.confThe symbolic link should point from the available site config to the enabled directory.
Fix the error in the server block to listen on port 80 for site2.
server {
listen [1];
server_name site2.example.com;
root /var/www/site2;
}Port 80 is the default HTTP port for nginx to listen on.
Fill both blanks to create a server block for site3 listening on port 443 with SSL enabled.
server {
listen [1] [2];
server_name site3.example.com;
root /var/www/site3;
}Port 443 with ssl enables HTTPS for the server block.
Fill all three blanks to create a location block that serves static files from /var/www/site4/static and disables logging.
location [1] { root [2]; access_log [3] off; }
The location /static serves static files from the root /var/www/site4. Access logging is turned off with access_log off;.