Node.js API Masterclass with Express and MongoDB - NGINX Reverse Proxy Setup

Node.js API Masterclass with Express and MongoDB - NGINX Reverse Proxy Setup

Assessment

Interactive Video

Information Technology (IT), Architecture

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial guides viewers through installing Nginx, setting up a firewall using UFW, and configuring Nginx as a reverse proxy. It covers enabling necessary ports for HTTP and HTTPS, editing server block configurations, and verifying the setup by restarting Nginx and checking the configuration. The tutorial aims to secure a server and prepare it for running an API in production.

Read more

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the first step in setting up Nginx?

Enabling HTTPS

Setting up a firewall

Installing Nginx

Configuring the server block

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which command is used to enable the firewall?

UFW activate

UFW enable

UFW open

UFW start

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which port is typically used for HTTP traffic?

22

5000

443

80

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What file needs to be edited to configure the reverse proxy in Nginx?

/etc/nginx/nginx.conf

/etc/nginx/sites-available/default

/etc/nginx/sites-enabled/default

/etc/nginx/conf.d/default.conf

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What should be included in the server block for a reverse proxy?

Server name and port number

Only the server name

Server name and proxy pass

Only the proxy pass

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What command is used to restart the Nginx service?

service nginx start

service nginx reload

service nginx stop

service nginx restart

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can you verify the Nginx configuration is correct?

Checking the server logs

By checking the default page

Using the command nginx -t

Restarting the server