Tutorials  /  Ubuntu

Install and Configure Nginx UI on Ubuntu 24.04 with Let’s Encrypt

Ccentron Redaktion · November 2025 ·4 min read ·Ubuntu, Tutorial

Nginx UI is an open-source web interface that simplifies the management and configuration of the Nginx web server. It supports both single-node and clustered environments, provides live server statistics, automatic SSL/TLS certificate handling with Let’s Encrypt, and integrates large language models (LLMs) for intelligent configuration management.

This guide explains how to install Nginx UI on Ubuntu 24.04, configure it to create and manage virtual hosts, and enable secure HTTPS connections through Let’s Encrypt.

Prerequisites

Before you begin, make sure you have:

  • Access to an Ubuntu 24.04 system with a non-root user who has sudo privileges.
  • A valid domain name pointing to your server’s public IP (e.g., nginx-ui.example.com).
  • Docker installed if you plan to deploy Nginx UI using a container.
VM

Matching infrastructure at centron

Ubuntu servers without your own hardware: ccloud³ VMs with full root access from €3.12 per month, billed by the hour and ready in seconds. Rent a cloud server →

Install Nginx UI

Nginx UI is not part of Ubuntu’s default repositories. You can install it using Docker or through the official installation script. This example uses the latest release script to set up Nginx UI as a system service.

Update Your System Packages

Console
$ sudo apt update

Install Nginx

Console
$ sudo apt install nginx -y

Download and Install Nginx UI

Use the following commands to download and install Nginx UI.

Console
$ curl -O https://cloud.nginxui.com/install.sh
$ sudo bash install.sh install

Verify Installation

Console
$ nginx-ui --version

Expected output:

Code
nginx-ui 2.1.17 1(468) 876213ad (go1.24.5 linux/amd64)
Yet another Nginx Web UI

Start and Check the Nginx UI Service

Console
$ sudo systemctl start nginx-ui
$ sudo systemctl status nginx-ui

Configure Nginx Reverse Proxy

By default, Nginx UI listens on port 9000 (localhost). Configure Nginx as a reverse proxy to enable public HTTPS access.

Console
$ cd /etc/nginx/sites-available
$ sudo nano nginx-ui.conf

Insert the configuration below, replacing nginx-ui.example.com with your actual domain:

Code
map $http_upgrade $connection_upgrade {
    default upgrade;
    ''      close;
}

server {
    listen          80;
    listen          [::]:80;

    server_name     nginx-ui.example.com;

    location / {
        proxy_set_header    Host                $host;
        proxy_set_header    X-Real-IP           $remote_addr;
        proxy_set_header    X-Forwarded-For     $proxy_add_x_forwarded_for;
        proxy_set_header    X-Forwarded-Proto   $scheme;
        proxy_http_version  1.1;
        proxy_set_header    Upgrade             $http_upgrade;
        proxy_set_header    Connection          $connection_upgrade;
        proxy_pass          http://127.0.0.1:9000;
    }    
}
Console
$ sudo rm -f /etc/nginx/sites-enabled/default
$ sudo ln -s /etc/nginx/sites-available/nginx-ui.conf /etc/nginx/sites-enabled/
$ sudo nginx -t
$ sudo systemctl restart nginx

Secure Nginx UI with Let's Encrypt

Install Certbot to generate and manage free TLS certificates for your domain.

Console
$ sudo apt install certbot python3-certbot-nginx -y
$ sudo ufw allow 80,443/tcp
$ sudo ufw reload
$ sudo certbot --nginx -d nginx-ui.example.com -m admin@example.com --agree-tos --no-eff
$ sudo systemctl restart nginx-ui

Access the Nginx UI Interface

Open your browser and navigate to https://nginx-ui.example.com. Complete the setup by creating an admin account and verifying system details. The dashboard displays server metrics like uptime, memory, and network usage.

Manage TLS Certificates

Nginx UI includes automatic certificate management via Let’s Encrypt or other trusted authorities. You can import, issue, and monitor certificates, or add DNS credentials to handle wildcard domains. Under ACME User, create or manage certificate authority accounts for automatic renewals.

Create Virtual Host Configurations

To deploy a new web application, create a subdomain and corresponding directory:

Console
$ sudo mkdir -p /var/www/app.example.com
$ sudo nano /var/www/app.example.com/index.html

Add the following HTML content:

Code

Greetings from centron!

Greetings from centron!

Console
$ sudo chown -R www-data:www-data /var/www/app.example.com

Within the Nginx UI dashboard, navigate to Manage SitesAdd Site to create the virtual host, enable TLS, and issue a Let’s Encrypt certificate automatically. Once completed, access your app at:

https://app.example.com

Conclusion

In this tutorial, you learned how to install and configure Nginx UI on Ubuntu 24.04. With Nginx UI, you can efficiently manage users, monitor performance, automate SSL management, and even integrate with LLMs for configuration assistance. For advanced usage and documentation, visit the official Nginx UI site.

Jetzt 200 € Guthaben sichern

Testen Sie Ihr Setup auf ccloud³

Registrieren Sie sich in der ccloud³ und erhalten Sie 200 € Startguthaben für Ihr Projekt – z. B. für eine PostgreSQL-VM mit automatischen Backups.

centron Redaktion Technische Redaktion

Das Redaktionsteam von centron schreibt Anleitungen aus dem Betriebsalltag: getestet auf unserer eigenen Plattform, betrieben im Rechenzentrum in Hallstadt bei Bamberg.

Kategorie Ubuntu
Teilen
Noch offene Fragen?

Unser Team hilft Ihnen bei Ihrem konkreten Setup weiter – von Menschen, die die Plattform selbst betreiben.

War dieses Tutorial hilfreich?

Ihre Antwort wird anonym gespeichert und hilft uns, die Tutorials zu verbessern.

Kommentare

Noch keine Kommentare – stellen Sie die erste Frage zu diesem Tutorial.

Zum Kommentieren anmelden

Kommentare stehen centron-Kunden offen. Melden Sie sich in Ihrem Konto an, um eine Frage zu diesem Tutorial zu stellen.

Weiterlesen

Das könnte Sie auch interessieren

Jetzt kostenlos anfangen

Melden Sie sich an und erhalten Sie in den ersten 60 Tagen ein Guthaben von 200 € bei centron.

Dieses Werbeangebot gilt nur für neue Konten. Angebot ausschließlich für Gewerbetreibende.

Jetzt loslegen Sales kontaktieren