High-performance Nginx packages for AlmaLinux & Rocky Linux
Set up the repository on your server and install Nginx:
# Step 1 — Add the repository cat > /etc/yum.repos.d/centminmod-nginx.repo << 'EOF' [centminmod-nginx] name=Centmin Mod Nginx baseurl=https://rpm-nginx.centminmod.com/stable/el/$releasever/$basearch/ enabled=1 gpgcheck=0 EOF # EL8 only: disable nginx module stream to avoid conflicts dnf module disable -y nginx # skip on EL9/EL10 # Step 2 — Install Nginx (+ all modules, optional) dnf install -y centminmod-nginx nginx-module-*
Start and enable Nginx:
systemctl start nginx systemctl enable nginx
/usr/local/nginx/Install only the modules you need:
# Example: add Brotli compression and Lua scripting dnf install nginx-module-brotli nginx-module-lua # See everything available dnf list available nginx-module-*
Most dependencies are resolved automatically by dnf. Some modules require system libraries that dnf will pull in when you install them:
| System Package | Required By | Notes |
|---|---|---|
procps-ng | centminmod-nginx (base) | Explicit RPM dependency |
brotli | nginx-module-brotli | Auto-resolved by dnf |
libmaxminddb | nginx-module-geoip2 | Auto-resolved by dnf |
gd | nginx-module-image-filter | Auto-resolved by dnf |
libxslt | nginx-module-xslt, nginx-module-dav-ext | Auto-resolved by dnf |
libxml2 | nginx-module-xslt, nginx-module-dav-ext | Auto-resolved by dnf |
libzstd | nginx-module-zstd | Auto-resolved by dnf |
On minimal installs, you can pre-install all prerequisites at once:
dnf install -y procps-ng brotli libmaxminddb gd libxslt libxml2 libzstd
EL8 only: Run dnf module disable -y nginx before installing to avoid modular filtering conflicts.
Module dependencies: nginx-module-lua, nginx-module-set-misc, and nginx-module-encrypted-session require nginx-module-ndk — resolved automatically by dnf.
Install any module with dnf install nginx-module-<name>. Each module auto-configures itself via drop-in config.
| nginx-module-accesskey | Access key-based authorization |
| nginx-module-brotli | Brotli compression (static + dynamic) |
| nginx-module-cache-purge | Purge cached content by URL |
| nginx-module-dav-ext | WebDAV extended methods (PROPFIND, OPTIONS, etc.) |
| nginx-module-echo | Shell-style output and testing utilities |
| nginx-module-encrypted-session | Encrypt/decrypt session variables |
| nginx-module-fancyindex | Themed directory listings |
| nginx-module-geoip2 | MaxMind GeoIP2 database lookups |
| nginx-module-headers-more | Add, set, or clear HTTP headers |
| nginx-module-http-concat | Concatenate files in a single response |
| nginx-module-http-rdns | Reverse DNS lookups for client IPs |
| nginx-module-http-redis | Redis caching for HTTP responses |
| nginx-module-image-filter | On-the-fly image resizing and transforms |
| nginx-module-length-hiding | Pad response length to prevent side-channel leaks |
| nginx-module-lua | Lua scripting (OpenResty lua-nginx-module) |
| nginx-module-memc | Extended memcached interface |
| nginx-module-ndk | Nginx Development Kit (dependency for lua, set-misc) |
| nginx-module-njs | NGINX JavaScript — scripting with njs |
| nginx-module-redis2 | Redis 2.0 protocol support |
| nginx-module-set-misc | Extended variable manipulation (base64, hashes, etc.) |
| nginx-module-srcache | Subrequest-based caching (memcached/redis backends) |
| nginx-module-subs-filter | Regex-based response body substitution |
| nginx-module-testcookie | Bot detection via cookie challenge |
| nginx-module-vts | Virtual host traffic status & monitoring |
| nginx-module-xslt | XML/XSLT response transformation |
| nginx-module-zstd | Zstandard compression (static + dynamic) |
Different builds are available. Most users should use stable (the default above).
| Variant | Best For |
|---|---|
| stable | Most users — uses your system’s OpenSSL |
| awslc | AWS-LC crypto library (FIPS-capable) |
| openssl | Custom OpenSSL built from source |
| optimized | LTO + x86-64-v3 + mold linker (Haswell 2013+) |
| optimized-v4 | LTO + x86-64-v4 + mold linker (Skylake-X / Zen 4+, AVX-512) |
| awslc-optimized | AWS-LC + LTO + x86-64-v3 + mold (Haswell 2013+) |
| awslc-optimized-v4 | AWS-LC + LTO + x86-64-v4 + mold (Skylake-X / Zen 4+, AVX-512) |
To switch variants, replace stable with the variant name in the baseurl.
centminmod.com · GitHub · Updated April 01, 2026