How To Install Nginx on Ubuntu 20.04

1. Install nginx

sudo apt update
sudo apt install nginx

2.   Adjusting the Firewall

sudo ufw app list

You should get a listing of the application profiles:

Output
Available applications:
  Nginx Full
  Nginx HTTP
  Nginx HTTPS
  OpenSSH

It is recommended that you enable the most restrictive profile that will still allow the traffic you’ve configured. Right now, we will only need to allow traffic on port 80.

sudo ufw status

1. Install Nginx

sudo apt update
sudo apt install nginx

Leave a Reply

Your email address will not be published. Required fields are marked *