On this page
- How is Nginx UI different from Nginx Proxy Manager?
- What should be in place first?
- How do you install Nginx UI?
- How do you open the panel safely the first time?
- How do you publish the panel over HTTPS?
- How do you manage sites and certificates in the panel?
- How do you keep it updated and backed up?
- What if Nginx UI shows errors?
- Questions
How is Nginx UI different from Nginx Proxy Manager?
Nginx UI edits the real Nginx installed on your host, file by file, while Nginx Proxy Manager runs its own Nginx inside a container and generates configuration from a database. With Nginx UI you keep the normal layout in /etc/nginx/sites-available and sites-enabled, can still edit files over SSH, and see the panel pick up your changes. It adds a code editor with syntax checks, a certificate manager built on ACME, live log viewing, a browser terminal and server statistics.
That makes it a good fit if you already run Nginx and simply want a quicker way to look things up and make small edits. Because it can change any site and open a shell, it deserves the same protection as SSH itself.
What should be in place first?
Use Ubuntu 24.04 or 22.04, or Debian 12 or 13, with a sudo user, and install Nginx from the distribution so Nginx UI has something to manage:
sudo apt update
sudo apt install -y nginx curl
sudo systemctl enable --now nginx
nginx -v
ls /etc/nginx/sites-available /etc/nginx/sites-enabledAllow web traffic and SSH in UFW now, and leave port 9000 out on purpose:
sudo ufw allow OpenSSH
sudo ufw allow 'Nginx Full'
sudo ufw enable
sudo ufw statusThe Nginx install guide covers server blocks in more detail if this is a new server.
How do you install Nginx UI?
The project publishes an install script that downloads the latest release binary, writes a config file and registers a systemd service. Download it first instead of piping it straight into a shell, so you can read what it does:
cd /tmp
curl -fsSL -o install.sh https://raw.githubusercontent.com/0xJacky/nginx-ui/main/install.sh
less install.sh
sudo bash install.sh installThe script places the program in /usr/local/bin/nginx-ui and its settings in /usr/local/etc/nginx-ui/app.ini. Check the service and the listening port:
systemctl status nginx-ui --no-pager
sudo ss -tlnp | grep nginx-ui
nginx-ui --versionYou should see the process listening on port 9000. The same script later handles upgrades (sudo bash install.sh install again) and removal (sudo bash install.sh remove). The project documentation also describes a Docker image, but the host install is simpler for managing a host Nginx because the panel needs direct access to its files and to systemctl reload nginx.
How do you open the panel safely the first time?
Use an SSH tunnel so the first-run wizard is never exposed. Until you finish it, anyone who reaches the port could create the admin account.
ssh -L 9000:127.0.0.1:9000 deploy@198.51.100.24Browse to http://localhost:9000 on your computer. The wizard asks for an email for ACME notices, then a username and password for the administrator. Pick a long random password. In the settings afterwards, turn on two-factor authentication if your release offers it, and review the paths it detected for the Nginx configuration folder, the log files and the reload command. The defaults match the Debian and Ubuntu layout.
Confirm from outside that the port is closed: curl -m 5 http://198.51.100.24:9000 run on another machine should fail.
How do you publish the panel over HTTPS?
When an SSH tunnel is inconvenient, put the panel behind your Nginx on its own name and limit who can reach it. Nginx UI uses WebSockets for the terminal and live logs, so pass the upgrade headers. Create /etc/nginx/sites-available/panel.example.net:
server {
listen 80;
listen [::]:80;
server_name panel.example.net;
allow 203.0.113.50; # your own public IP
deny all;
location / {
proxy_pass http://127.0.0.1:9000;
proxy_http_version 1.1;
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_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}sudo ln -s /etc/nginx/sites-available/panel.example.net /etc/nginx/sites-enabled/
sudo nginx -t && sudo systemctl reload nginx
sudo apt install -y certbot python3-certbot-nginx
sudo certbot --nginx -d panel.example.netThe allow and deny lines keep the login page invisible to everyone else. Certbot adds the HTTPS block and redirect; the redirect guide explains what it writes. If you have a changing home IP, use the tunnel or add HTTP basic authentication on top of the panel login.
How do you manage sites and certificates in the panel?
Under Manage Sites the panel lists every file in sites-available and shows which ones are enabled. Opening one gives a form view for common directives and a raw editor for everything else. Saving runs nginx -t before reloading, so a typo is reported rather than taking the server down.
For certificates, open a site, switch on HTTPS and let the panel request a certificate through its built-in ACME client. It stores certificates under its own folder and renews them on a schedule. Pick one tool for certificates per site: if Certbot already manages a name, leave that site to Certbot so two renewers do not fight. Test any change from a terminal as well:
sudo nginx -t
curl -I https://example.netHow do you keep it updated and backed up?
Rerun the install script to update to the newest release, then confirm the version and service state:
curl -fsSL -o /tmp/install.sh https://raw.githubusercontent.com/0xJacky/nginx-ui/main/install.sh
sudo bash /tmp/install.sh install
systemctl is-active nginx-uiBack up /usr/local/etc/nginx-ui/ together with /etc/nginx/; between them they hold the panel database, its settings and your site files. A simple archive works: sudo tar czf ~/nginx-ui-$(date +%F).tar.gz /usr/local/etc/nginx-ui /etc/nginx.
What if Nginx UI shows errors?
- Service will not start: read
journalctl -u nginx-ui -n 50 --no-pager. A port conflict on 9000 is the usual cause; change the port inapp.iniand restart. - Edits saved but not live: the site is in
sites-availablebut not enabled. Enable it in the panel or create the symlink. - Terminal or logs blank behind Nginx: the
UpgradeandConnectionheaders are missing from the proxy block. - Certificate request fails: check DNS for the name and that port 80 reaches Nginx.
Plans that fit this guide
Base city prices. Every plan includes a dedicated IPv4 address, IPv6, full root and all 18 images.
Questions about Nginx UI web interface
Does Nginx UI work on Rocky Linux or AlmaLinux?
The binary runs there too, but Nginx on those systems uses /etc/nginx/conf.d/ instead of sites-available, so you have to adjust paths in the settings. This guide covers Ubuntu and Debian only.
Can I still edit files over SSH?
Yes. The panel reads the files on disk each time, so changes you make in a terminal show up after a refresh.
Is the browser terminal a risk?
It is a root-level shell in a web page, so it is only as safe as the panel login. Keep the port private, use a strong password and two-factor login.
How do I reset a lost admin password?
Check the project documentation for the reset command for your release, run it over SSH, then restart the nginx-ui service.
Does it need much memory?
No. It is a single Go binary and runs comfortably next to Nginx on a 1 GB server.
More in Web servers and proxies
- Install and configure Nginx
- Install and configure Apache
- OpenLiteSpeed web server
- HAProxy load balancer and TLS proxy
- Load balancing with Nginx upstreams
- Nginx as a reverse proxy for an app
- Apache as a reverse proxy
- Compression with gzip and Brotli
- HTTPS and www redirects
- Turn off Apache directory listings
- Nginx Proxy Manager with Docker
- Traefik for Docker containers
- Apache Tomcat for Java apps
- Encrypted FTP with vsftpd (FTPS)
- Varnish cache in front of a site