What is Nginx?

Nginx (pronounced “engine-x”) is a free and open-source web server software that can also function as a reverse proxy, load balancer, and HTTP cache. It was first released in 2004 and has since become one of the most popular web servers in use today.

Nginx is designed to be fast, lightweight, and scalable, making it an ideal choice for serving static content or handling high-traffic websites. It uses an event-driven, non-blocking I/O model that allows it to handle multiple requests simultaneously with minimal system resources. Nginx can also be used as a load balancer to distribute incoming traffic across multiple servers, helping to improve performance and reliability.

Step 1 – Installing Nginx

sudo apt install nginx

Step 2 – Adjust the Firewall

sudo ufw app list
Available applications:
  Nginx Full
  Nginx HTTP
  Nginx HTTPS
sudo ufw allow 'Nginx HTTP'
sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
OpenSSH                    ALLOW       Anywhere                  
Nginx HTTP                 ALLOW       Anywhere                  
OpenSSH (v6)               ALLOW       Anywhere (v6)             
Nginx HTTP (v6)            ALLOW       Anywhere (v6)

Step 3 – Checking Web Server Status

systemctl status nginx
112Cloud VPS
Back To Top