Skip to content

Nginx for Cockpit

by SEYSOFT · Version 1.0.0

Manage the nginx web server from your browser inside Cockpit: static sites, reverse proxies, config editing and logs, with rollback.

Bare metal Server management MIT
Nginx for Cockpit

Overview

A module for Cockpit that manages the nginx web server from the browser, so you don't have to edit config files over SSH. It is built to look like a factory Cockpit page (PatternFly 6) and follows Cockpit's light and dark setting.

It is self-contained: nothing else needs to be installed, it makes no network connections of its own, and it needs no account, repository or other module. It does not install nginx for you. If nginx is missing, the page tells you (sudo dnf install nginx). It is static files only (HTML, CSS and JavaScript), with no compiled code and no scripts run at install time.

What it does

  • Overview: nginx state and version, Start, Stop, Restart and Reload, start at boot, and a configuration test (nginx -t).
  • Sites: list the site files in /etc/nginx/conf.d, then create (static site or reverse proxy), edit, enable or disable and delete them. A disabled site is renamed name.conf.disabled, which nginx ignores. It also edits the main nginx.conf.
  • Logs: read-only access to the error log and the journal.

Safe by design

Every change follows the same steps: nginx is tested first, the file is backed up, the change is made, nginx is tested again, and the change is rolled back automatically if the test fails. nginx is only reloaded if it was running. If the configuration was already broken before your change, nothing is changed or reloaded and you are told why. Start, restart and reload refuse to run while nginx -t fails.

Good to know

  • Needs Cockpit 337 or newer (Rocky Linux or RHEL 9.7 and later, current Fedora). Older Cockpit versions refuse to load it.
  • nginx must already be installed on the server. The module only suggests it, never pulls it in.
  • Reading works for any user. Anything that changes the system asks for administrative access.
  • No TLS or certificate management and no install button.
  • Backups are never pruned and there is no "restore a backup" screen (they are plain files).
  • The "Serves", "Names" and "Listens" columns come from a simple text scan of each file, for display only.
  • Files owned by other tools (for example a hosting panel) are listed like any other, so don't edit those here.
  • Bundles PatternFly 6 styles (MIT) and Red Hat fonts (SIL OFL 1.1); their licences are included.
  • Cockpit, nginx, Red Hat, Rocky Linux and Fedora are trademarks of their respective owners. This is an independent module and is not affiliated with or endorsed by any of them.
  • You run it on your own systems, at your own risk. Test changes on a non-production server first.

Installation

Download the release file, cockpit-nginx-1.0.0-manual.tar.gz, then choose one:

System-wide (all Cockpit users, needs root)

sudo tar -C /usr/share/cockpit -xzf cockpit-nginx-1.0.0-manual.tar.gz

One user only (no root needed to install)

mkdir -p ~/.local/share/cockpit
tar -C ~/.local/share/cockpit -xzf cockpit-nginx-1.0.0-manual.tar.gz

If nginx isn't installed yet:

sudo dnf install nginx

Then log out of Cockpit and back in. Cockpit reads its module list at login, and "Nginx" appears in the left menu. If it doesn't, run this as the same user to see whether Cockpit found it:

cockpit-bridge --packages | grep -i nginx

Updating: there is no automatic update. Unpack the newer archive over the old one and log in again.

Removing

sudo rm -rf /usr/share/cockpit/nginx
sudo rm -rf /var/lib/cockpit-nginx

For a single-user install, remove ~/.local/share/cockpit/nginx instead. The second line is optional and deletes the saved config backups. Log out and back in afterwards. Site files in /etc/nginx/conf.d/ are ordinary nginx config and keep working until you delete them.

Files it uses on your server

Path Purpose
/usr/share/cockpit/nginx/ (or ~/.local/share/cockpit/nginx/) The module itself
/etc/nginx/conf.d/*.conf, /etc/nginx/nginx.conf The configuration it reads and edits
/var/lib/cockpit-nginx/backups/ Timestamped backups before every change (root only; created on first change)

Requirements

  • Cockpit 337 or newer (Rocky Linux or RHEL 9.7 and later, current Fedora)
  • nginx installed on the server (sudo dnf install nginx)
  • An administrative account for anything that changes the system
  • No internet access needed

Versions

  • 1.0.0 Latest · Nov 23, 2026 · 224.1 KB

    SHA-256 85b23ea8b1aaad7a42b99aa14fd9c9999dabd73c30c2b75a01ce1ccd4c26d274

    Release notes

    Initial release. Cockpit module for nginx: service control with config test, static sites and reverse proxies (create, edit, enable, disable, delete), nginx.conf editor, and error and journal logs, with backups and automatic rollback.

To check a download, compare the SHA-256 above with sha256sum <file> on Linux and macOS, or Get-FileHash <file> in PowerShell. If they differ, download it again.

Software is provided as it is, and any open-source components keep their own licences. Need help with it? Contact support.

More software

View all →

Samba for Cockpit

SEYSOFT

Share folders with Windows, Mac and Linux computers from your browser inside Cockpit. Manage Samba shares and users without smb.conf.

Bare metal Server management
v1.0.0 Included

Apache for Cockpit

SEYSOFT

Manage the Apache web server from your browser inside Cockpit: sites, reverse proxies, HTTPS, config editing with rollback, logs and SELinux.

Bare metal Server management
v1.0.1 Included

RF Workbench

SEYSOFT

Browser control panel for a HackRF One: live spectrum and waterfall, tune and listen, a channel scanner and an RF activity monitor, in Docker.

Docker Communications
v0.9.0 Included