← All modules

Nginx

Web server Free

Manage the nginx web server, its sites and logs.

About

Nginx gives you a simple control panel for the nginx web server on your Rocky Linux server. See whether nginx is running, start, stop or reload it, and manage your sites without opening a terminal. Every change is checked with nginx -t before it takes effect and is rolled back automatically if nginx rejects it, so a typo can't take your sites offline.

What this module can do

  • - Show nginx status, version and whether it starts at boot
  • - Start, stop, restart and reload nginx, and turn start at boot on or off
  • - Test the configuration with nginx -t
  • - List the sites in /etc/nginx/conf.d with their names, ports and what they serve
  • - Create a new static-file or reverse-proxy site
  • - Edit site files and the main nginx.conf, with automatic backups and rollback
  • - Enable, disable and delete sites (a backup copy is kept)
  • - View the access log, error log and nginx service journal, with a text filter

Install

With the Devsey Marketplace set up, open it in Cockpit and press Install on this module. Or from a terminal:

dnf install cockpit-devsey-nginx

Set up the marketplace

  1. Trust the Devsey signing key
    rpm --import https://packages.devsey.com/RPM-GPG-KEY-devsey

    Check that the fingerprint matches before you continue:

    curl -s https://packages.devsey.com/RPM-GPG-KEY-devsey | gpg --show-keys

    92E1 B507 A84A 2A8A A4E3 98A5 AC73 F12D FB9F 48E2

  2. Add the repository
    curl -o /etc/yum.repos.d/devsey.repo https://packages.devsey.com/devsey.repo
  3. Install the marketplace
    dnf install cockpit-devsey-marketplace

    Log out of Cockpit and back in. Devsey Marketplace appears in the menu, ready to install the rest.