---
title: How to Install Nginx UI on Ubuntu 24.04- An Opensource WebUI for Nginx
url: https://docs.vultr.com/how-to-install-nginx-ui-on-ubuntu-24-04-an-opensource-webui-for-nginx
description: Learn how to install Nginx UI, an open-source web interface for managing Nginx configurations on Ubuntu 24.04. Simple steps for easier server management.
publish_date: 2025-10-29T15:37:32.744587Z
last_updated: 2025-11-06T14:06:16.403000Z
author: Davis Clifford Pandya
header_image: https://assets.vultrdevrel.com/docs-main-doc-assets-1/2357/9962a582-e4e8-4245-aa42-4c5aab963a97.png
---

> Index of every Vultr Docs page in markdown: https://docs.vultr.com/llms.txt

Nginx UI is an open-source web-based configuration management GUI for Nginx. It supports single-node and cluster node configurations with real-time server statistics, automatic TLS certificates with Let's Encrypt, Nginx performance monitoring, and integration with large language models (LLMs) to manage configurations on a server.

In this article, you will install Nginx UI on Ubuntu 24.04 to create and manage Nginx web server configurations using a web-based management interface. You will create virtual host configurations and configure Nginx UI to use a trusted certificate authority (CA) such as Let's Encrypt to manage TLS certificates for secure connections on your server.

## Prerequisites

Before you start, you need to:

* Access an [Ubuntu 24.04 instance](https://www.vultr.com/servers/ubuntu/) as a [non-root user with sudo privileges](https://docs.vultr.com/how-to-create-a-sudo-user-in-linux).
* Create a new [domain **A** record](https://docs.vultr.com/products/network/dns/management/manage-records) pointing to the instance's public IP address. For example, `nginx-ui.example.com`.
* [Install Docker](https://docs.vultr.com/how-to-install-docker-on-ubuntu-24-04) on your server if you want to install Nginx UI using Docker.

## Install Nginx UI

Nginx UI is not available in the default package repositories on Ubuntu. You can install Nginx UI using Docker or the latest stable release script. Choose one of the two methods covered in this section.

1. Update your system package index.

    ```console
    $ sudo apt update
    ```

1. Install Nginx.

    ```console
    $ sudo apt install nginx -y
    ```

???+ note " Install Nginx UI using Script"

    Follow the steps below to download the latest installation script and install Nginx UI to manage web server configurations. This method installs Nginx UI as a system service.

    1. Download the latest Nginx UI installation script.

        ```console
        $ curl -O https://cloud.nginxui.com/install.sh
        ```

    1. Execute the script using Bash with the `install` option.

        ```console
        $ sudo bash install.sh install
        ```

    1. Verify the installed Nginx UI version.

        ```console
        $ nginx-ui --version
        ```

        Output:

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

    1. Start the Nginx UI service.

        ```console
        $ sudo systemctl start nginx-ui
        ```

    1. Check the Nginx UI service status and verify it's active.

        ```console
        $ sudo systemctl status nginx-ui
        ```

        Output:

        ```
        ● nginx-ui.service - Yet another WebUI for Nginx
             Loaded: loaded (/etc/systemd/system/nginx-ui.service; enabled; preset: enabled)
             Active: active (running) since Fri 2025-08-29 00:42:49 UTC; 2min 22s ago
        ...  
        ```

??? note "Install Nginx UI Using Docker"

    The Nginx UI Docker image is based on the latest Nginx image and works as a standalone web server solution for containerized applications. If Nginx UI is installed using Docker, you cannot modify the host's Nginx web server configurations. Follow these steps to install Nginx UI using Docker Compose.

    1. Create a directory for the Nginx UI Docker deployment in your home and switch to it.

        ```console
        $ mkdir -p ~/nginx-ui-docker
        $ cd ~/nginx-ui-docker
        ```

    1. Create the persistent data directory for NGINX config files.

        ```console
        $ sudo mkdir -p /opt/nginx-ui/nginx
        ```

    1. Create the persistent directory for Nginx UI configuration.

        ```console
        $ sudo mkdir -p /opt/nginx-ui/config
        ```

    1. Create the persistent directory for website files.

        ```console
        $ sudo mkdir -p /opt/nginx-ui/www
        ```

    1. Create a Docker Compose configuration file.

        ```console
        $ nano docker-compose.yml
        ```

    1. Add the following Docker Compose configuration.

        ```yaml
        version: '3.8'

        services:
         nginx-ui:
           image: uozi/nginx-ui:latest
           container_name: nginx-ui
           restart: always
           environment:
             - TZ=UTC
           volumes:
             - /opt/nginx-ui/nginx:/etc/nginx
             - /opt/nginx-ui/config:/etc/nginx-ui
             - /opt/nginx-ui/www:/var/www
           ports:
             - "127.0.0.1:9000:80"
           networks:
             - nginx-ui-net

        networks:
         nginx-ui-net:
           driver: bridge
        ```

        Save and close the file.

        The above configuration:

        * Uses the official Nginx UI Docker image.
        * Maps the container port 80 to localhost port 9000.
        * Persists data in `/opt/nginx-ui/` directories.
        * Configures automatic restart on failure.

    1. Start the Nginx UI container using Docker Compose.

        ```console
        $ sudo docker compose up -d
        ```

    1. Verify the container is running.

        ```console
        $ sudo docker compose ps
        ```

    1. Test the Nginx UI container accessibility.

        ```console
        $ curl -X GET http://localhost:9000
        ```

        You should see HTML output containing Nginx UI resources.

## Configure Nginx Reverse Proxy

Nginx UI listens on localhost port 9000 by default. Follow these steps to create a reverse proxy configuration with HTTPS using Let's Encrypt.

1. Navigate to the Nginx sites-available directory.

    ```console
    $ cd /etc/nginx/sites-available
    ```

1. Create a new Nginx UI virtual host configuration.

    ```console
    $ sudo nano nginx-ui.conf
    ```

1. Add the following reverse proxy configuration. Replace `nginx-ui.example.com` with your domain.

    ```ini
    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;
        }    
    }
    ```

    Save and close the file.

1. Remove the default configuration from sites-enabled.

    ```console
    $ sudo rm -f /etc/nginx/sites-enabled/default
    ```

1. Enable the Nginx UI virtual host configuration.

    ```console
    $ sudo ln -s /etc/nginx/sites-available/nginx-ui.conf /etc/nginx/sites-enabled/
    ```

1. Test the Nginx configuration for errors.

    ```console
    $ sudo nginx -t
    ```

    Output:

    ```
    nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
    nginx: configuration file /etc/nginx/nginx.conf test is successful
    ```

1. Restart Nginx to apply the configuration.

    ```console
    $ sudo systemctl restart nginx
    ```

## Secure Nginx UI with Let's Encrypt TLS

1. Install Certbot and the Nginx plugin.

    ```console
    $ sudo apt install certbot python3-certbot-nginx -y
    ```

1. Configure the firewall to allow HTTP and HTTPS traffic.

    ```console
    $ sudo ufw allow 80,443/tcp
    ```

1. Reload the firewall.

    ```console
    $ sudo ufw reload
    ```

1. Generate a Let's Encrypt TLS certificate. Replace `nginx-ui.example.com` with your domain and `admin@example.com` with your email.

    ```console
    $ sudo certbot --nginx -d nginx-ui.example.com -m admin@example.com --agree-tos --no-eff
    ```

1. Restart the nginx-ui service.

    ```console
    $ sudo systemctl restart nginx-ui
    ```

## Access Nginx UI

You can now access the Nginx UI web interface using HTTPS on your domain. Follow these steps to complete the initial setup.

1. Access your domain using a web browser.

    ```
    https://nginx-ui.example.com
    ```

1. Verify the system information page displays without errors, then click **Next**.

    ![Nginx UI system information page](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2357/0e20473c-f99c-44e4-b023-0653b53e7bbd.png)

1. Create an administrator account by entering:
    * Your email address
    * A username
    * A strong password

    ![Create administrator](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2357/fc30ae05-20d2-4bb5-8edc-38e95d37e543.png)

1. Click **Install** to apply the configuration.

1. Log in with your administrator credentials.

    ![Login to Nginx UI](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2357/2e8aa7ad-ac6e-401f-8e69-6744487d8289.png)

1. Verify the dashboard displays server statistics, including uptime, memory, storage, and network information.

1. Click **Nginx** in the navigation menu to monitor web server performance.

1. Toggle **Enable stub_status module** to enable Nginx monitoring.

    ![Enable the Nginx module](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2357/03816d07-7b47-491d-9c6e-bfdf5476cdf9.png)

## Manage TLS Certificates

Nginx UI supports automatic TLS certificate management with Let's Encrypt and other certificate authorities. To configure certificate management, follow these steps.

1. Navigate to **Certificates** in the main menu.

1. Click **Certificates List** to view existing certificates.

    ![Manage TLS Certificates](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2357/f0cec71c-1157-4ff9-b9a0-a78b42b21529.png)

1. Click **Import** to add existing certificates or **Issue Certificate** to generate new ones.

1. Navigate to **DNS Credentials** to configure DNS provider APIs for wildcard certificates.

1. Click **Add** to configure your DNS provider.

    ![Add new credential](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2357/046f1982-a186-47e6-b843-8c4b005a6214.png)

1. Navigate to **ACME User** to manage certificate authority accounts.

1. Click **Add** to create an ACME user:
    * Enter a username
    * Enter your email address
    * Select `https://acme-v02.api.letsencrypt.org/directory` from the **CA Dir** dropdown
    * Keep **Proxy** and **EAB** fields empty

    ![Create ACME User](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2357/b7486279-9653-415a-b2c7-e7e36fed6fc8.png)

1. Toggle **Register on Startup** to enable automatic registration.

1. Click **Save** to create the ACME user.

1. Verify the ACME user status shows **Valid**.

1. Click **View** to check the ACME user details.

    ![View ACME User Information](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2357/36605550-e0ee-4072-9cdd-e2df885400a3.png)

## Create Virtual Host Configurations

Follow these steps to create new virtual host configurations using Nginx UI.

1. Create a new subdomain DNS record pointing to your server's IP address. For example, `app.example.com`.

    ![Vultr DNS](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2357/50c5fdd6-4a9f-4396-8b3a-78e8e22add6d.png)

1. Navigate to **Terminal** in Nginx UI.

1. Create a directory for your web application.

    ```console
    $ sudo mkdir -p /var/www/app.example.com
    ```

1. Create a sample HTML file.

    ```console
    $ sudo nano /var/www/app.example.com/index.html
    ```

1. Add the following HTML content.

    ```html
    <html>
    <head>
    <title>Sample Nginx Virtual Host Application</title>
    </head>
    <body>
    <h1 align="center">Greetings from Vultr!</h1>
    </body>
    </html>
    ```

    Save and close the file.

1. Set proper ownership permissions.

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

1. Navigate to **Manage Sites** in the main menu.

1. Click **Sites List** to view existing configurations.

    ![Manage Nginx Vhost Configs](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2357/29926ba9-473d-4219-918d-8059c20da5e4.png)

1. Click **Add** to create a new virtual host.

1. Configure the virtual host:
    * Enter a configuration name
    * Verify IPv4 and IPv6 listening ports (80)
    * Enter your domain in the `server_name` field
    * Enter `/var/www/app.example.com` in the `root` field

    ![Create vhost HTTP config](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2357/a5c7d983-3c12-46cc-96aa-d84eb2b58fa6.png)

1. Set the index file order: `index.html`, `index.htm`, `index.php`.

1. Click **Next** to configure TLS.

1. Toggle **Enable TLS** and click **OK**.

    ![Enable TLS](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2357/091a04a1-bf5d-49b3-9815-ab6c3447e621.png)

1. Toggle **Encrypt website with Let's Encrypt** and click **OK**.

1. Configure Let's Encrypt settings:
    * Keep **HTTP01** as the challenge method
    * Select **EC256** as the key type
    * Select your ACME user

1. Click **Next** and monitor the certificate generation.

    ![Monitor the TLS Certificate Process](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2357/f80c1c77-9b66-4728-9085-38f1e7d37c32.png)

1. Close the Let's Encrypt dialog and verify the certificate details.

1. Click **Next** to apply the configuration.

    ![Apply the vhost configuration](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2357/3d82e8da-8f7a-4420-9517-cd0c9ab7e59e.png)

1. Verify the virtual host status shows **Enabled**.

1. Click **Edit** to modify the configuration if needed.

    ![Edit the Nginx Virtual Host Configuration](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2357/ebe75c83-4643-41b2-941c-5a0081417a69.png)

1. Toggle **Basic Mode** to switch to **Advanced Mode** for raw configuration access.

    ![View the raw Virtual Host Config](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2357/1865c46c-a793-47b4-bcbb-858c999861a0.png)

1. Access your virtual host domain to verify the configuration.

    ```
    https://app.example.com
    ```

    ![Greetings from Vultr Web Application](https://assets.vultrdevrel.com/docs-main-doc-assets-1/2357/33c2ff8f-0c58-44f4-ab22-15b7c5e77eff.png)

## Conclusion

In this article, you have installed Nginx UI on Ubuntu 24.04 and managed Nginx configurations on your server. You can use Nginx UI to manage users, advanced Nginx configurations, virtual host configurations, create backups, and monitor the Nginx web server performance using logs. In addition, you can integrate Nginx UI with MCP and use large language models (LLMs) to manage your configurations using the chat feature within the web dashboard. For more information and configurations, visit the [Nginx UI documentation](https://nginxui.com/guide/about.html).
