Install Nginx

Create reverse proxy services.

1. Install Nginx

Nginx is a web server and reverse proxy service.

# Debian, Ubuntu, Kali, Linux Mint (APT)
sudo apt install -y nginx

# Red Hat, CentOS, Fedora, AlmaLinux, Rocky (DNF / YUM)
sudo dnf install -y nginx
sudo yum install -y nginx

# OpenSUSE (Zypper)
sudo zypper -n install nginx

# Arch, Manjaro (Pacman)
sudo pacman -S --noconfirm nginx

# Enable and start Nginx
sudo systemctl enable nginx
sudo systemctl start nginx

2. Specify permissions on the UFW side

Allow Nginx to be accessed from outside in the firewall.

3. Create a service

Here we perform routing by creating a reverse proxy service.

TIP: Uninstall Nginx

This is how you can uninstall Nginx.

Last updated