deb.myguard.nl · canonical index

NGINX APT repository for Debian & Ubuntu

NGINX modules for Debian and Ubuntu: current mainline NGINX and up to 114 module packages you install with apt. No compiling. Hardened builds of NGINX (and Angie) with HTTP/3 (QUIC), kTLS, Brotli, Zstandard, ModSecurity v3 and Lua/NJS, rebuilt soon after each upstream release.

Current version:1.31.10
Last built:2026-11-23
Module packages:up to 114

This is the canonical index of NGINX modules for Debian and Ubuntu in the deb.myguard.nl NGINX APT repository, covering the NGINX and Angie packages. It is a hardened mainline build with HTTP/3 (QUIC), kTLS, Brotli, Zstandard, ModSecurity v3, Lua/NJS scripting and over a hundred dynamic modules, packaged for Docker, WordPress, Magento and OpenCart workloads. Rebuilds usually run within a few hours of an upstream nginx release; if no patch conflicts trip the pipeline, the new .deb and Docker image are published automatically.

Builds track Debian upstream closely and are backported to older releases. Most of the optional modules are included because you asked for them. If a module you need is missing, open an issue and it usually ends up in the next build.

The software is provided as-is, without commercial support, but build bugs get fixed and questions answered when time allows.

What is NGINX?

NGINX (pronounced “engine-x”) is a free, open-source web server, reverse proxy, load balancer and HTTP cache. Igor Sysoev wrote it to solve the C10K problem, which means serving ten thousand concurrent connections from one machine. He published the first public release on 4 October 2004.

Apache’s classic prefork model used one process per connection. NGINX instead runs a few worker processes, and each one drives thousands of connections through a non-blocking event loop (epoll on Linux). Memory use stays flat under load, which is why NGINX became the default front end for busy sites.

A typical NGINX server serves static files and terminates TLS, HTTP/2 and HTTP/3. It also proxies requests to PHP-FPM, Node.js, Python or Go back ends, balances load across upstream servers, caches responses and forwards raw TCP/UDP streams.

NGINX is released under the 2-clause BSD licence. F5 bought NGINX, Inc. in 2019 and moved development to GitHub in 2024. The open-source core is still free; the commercial NGINX Plus adds features on top.

There are two branches. Mainline (odd minor version, such as 1.31) gets new features and fixes first. Stable (even minor version, such as 1.30) gets only critical fixes. This repository ships mainline.

How popular is NGINX?

NGINX is one of the two most-used web servers on the internet, and the most widely deployed web server you can install and run yourself. The exact ranking depends on what a survey counts:

  • W3Techs (November 2026): NGINX runs 29.7% of websites whose web server is known. That is ahead of Apache (20.4%) and LiteSpeed (13.2%), and second only to Cloudflare Server (34.7%), which overtook NGINX in 2026. Cloudflare Server is Cloudflare’s CDN edge, not software you can install.
  • Netcraft (July 2026): NGINX is first across all sites with 20.4%, ahead of Cloudflare (16.7%) and Apache (11.5%). It also runs on 43.9% of web-facing computers, more than any other web server.
  • Netcraft counts OpenResty, a distribution built on the NGINX core, separately (8.0% of sites in July 2026). Angie and freenginx are further forks of the same code base, so the NGINX family is larger than any single figure shows.

NGINX is at or near the top of every survey, well ahead of Apache httpd. That popularity is why its module ecosystem is so large, and why a packaged, kept-current build is worth having.

Why an APT repository for NGINX modules?

Debian and Ubuntu ship an older stable NGINX: 1.22 on Debian 12, 1.26 on Debian 13 and 1.24 on Ubuntu 24.04 LTS. Debian 13 packages around 30 dynamic modules.

Once you need a newer release, or a module outside that set (Zstandard, PageSpeed, Coraza, JA3/JA4 TLS fingerprinting), the stock advice is to recompile NGINX from source. That means matching the exact upstream version, re-applying your build flags, and rebuilding by hand after every security release. Miss one and you are running an unpatched web server; automate it badly and a botched apt upgrade can take the site down.

This repository removes that work. Every module is packaged as a proper .deb: apt install nginx for the base, then add only the libnginx-mod-* packages you actually use. Upgrades flow through normal apt like any other package, signed and versioned, with the dynamic modules ABI-matched to the NGINX core they load into. No build host, no source tree, no patch fuzz to chase.

The builds go further than “NGINX plus a module”. Mainline NGINX (and the Angie fork) is compiled against OpenSSL for HTTP/3 (QUIC) and kTLS, with hardened build flags and up to 114 module packages. The repository also ships its own library packages and carries a patch series on top. NGINX and its modules are rebuilt within hours of each upstream release and mirrored to daily Docker images.

On this page

How to install NGINX modules for Debian and Ubuntu

Debian deprecated the meta-packages nginx-light, nginx-core, nginx-extras and nginx-full. The supported installation pattern is now: install nginx, then add each dynamic module you need.

apt-get install nginx
apt-get install libnginx-mod-http-fancyindex libnginx-mod-http-brotli libnginx-mod-http-zstd

Repository setup, signing keys, and per-distribution suite names are covered on How to Add the myguard APT Repository. Containerised builds live in Angie and NGINX Docker Images; a good general-purpose tag is eilandert/nginx:deb-php8.5.

The module count depends on the release and the architecture. Trixie and Resolute get 114 module packages on amd64 and 112 on arm64. Bookworm, Jammy and Noble get 112 on amd64 and 110 on arm64, because the Coraza WAF and OpenTelemetry modules are built only for Trixie and Resolute.

On arm64, every release leaves out the PageSpeed and Perl modules. Bullseye and Focal are frozen at NGINX 1.29.2 on amd64 and get no further updates. The forky suite (Debian testing) still holds an older NGINX 1.31.2 build, so use Trixie for production.

Table of NGINX module package counts per release in the deb.myguard.nl APT index on 27 November 2026. Debian 13 Trixie and Ubuntu 26.04 Resolute have 114 on amd64 and 112 on arm64. Debian 12 Bookworm, Ubuntu 24.04 Noble and Ubuntu 22.04 Jammy have 112 on amd64 and 110 on arm64. All five run current mainline. Debian 11 Bullseye and Ubuntu 20.04 Focal have 59 on amd64, none on arm64, and are frozen at 1.29.2. Debian 14 forky (testing) has 115 on amd64 and 112 on arm64 from an older 1.31.2 build.
Module packages per release and architecture in the APT index, counted on 27 November 2026.

If you want the smallest possible footprint, install the nginx-minimal build instead. It is a lean build for proxying, caching and FastCGI that leaves out a dozen default static modules, such as SSI, SCGI, uWSGI, gRPC and memcached. It still loads any of the dynamic modules below, which makes it a good fit for a slim WordPress reverse-proxy container.

Build features

  • Latest mainline NGINX, packaged for Debian and Ubuntu.
  • Vendor branding stripped from the server signature.
  • Hardened default nginx.conf and a snippets/ tree with bot/security/hardening/proxy examples.
  • Linked against OpenSSL-NGINX for full TLS 1.3, HTTP/3 (QUIC), kTLS and a web-server-tuned OpenSSL build.
  • Includes the Cloudflare Optimizing TLS over TCP patch for lower handshake latency.
  • SSL defaults tuned for A+ on SSL Labs.
  • kTLS ready: load the tls kernel module and add ssl_conf_command Options KTLS; in the http { } block.
  • Built with AIO and threads (better throughput on ZFS and other high-latency filesystems).
  • Linked against zlib-ng (native mode) for faster gzip.
  • Compiled with -O2 -finline-functions and _FORTIFY_SOURCE=3, plus -fstack-clash-protection, -fno-plt and control-flow protection (-fcf-protection=full on amd64, -mbranch-protection=standard on arm64), on top of the Debian hardening flags. LTO is deliberately disabled (-fno-lto) for stable symbol resolution against the prebuilt OpenSSL libraries.
  • TCP Fast Open support: enable it in the kernel with sysctl -w net.ipv4.tcp_fastopen=3, then add fastopen=256 to the listen directive.
  • PageSpeed ships with a separately built PSOL (Page Speed Optimisation Library). There is one PSOL build for all Debian and Ubuntu releases.
  • Daily-rebuilt Docker images on Docker Hub.
  • The OWASP ModSecurity Core Rule Set is repackaged on its own weekly schedule.
  • A bundle of useful lua-resty modules, repackaged on its own monthly schedule.
  • NGINX and OpenSSL patched to allow yielding in ssl_session_fetch_by_lua* and ssl_certificate_by_lua*.

Extra NGINX modules built from git (dynamic)

Every entry below links to its synopsis page on this site, which in turn links to the upstream source the module is built from. The internal modules that ship with the NGINX source tree (image-filter, perl, geoip, xslt-filter, mail, stream, stream-geoip) are packaged too, as libnginx-mod-* packages, but they are not listed here because they live in nginx/nginx itself. If an entry looks wrong or out of date, file a bug.

Standalone libraries provided

Libraries built alongside the modules. Most ship as their own packages: libmodsecurity3, libcoraza1, modsecurity-crs, libjemalloc2, libz-ng2, libssl-nginx and the lua-resty packages. PSOL, libinjection and quickjs-ng are linked into a module at build time. None of them loads as an NGINX module.

  • libmodsecurity3 – v3 library component used by the nginx connector.
  • libcoraza – C/Go WAF engine linked by libnginx-mod-http-coraza; runs SecLang/OWASP CRS rules as a ModSecurity v3 replacement.
  • modsecurity-crs – OWASP ModSecurity Core Rule Set.
  • libjemalloc2 – jemalloc allocator, built specifically for NGINX (use the one from this repo).
  • libz-ng2 – next-generation zlib data-compression library (native mode).
  • lua-resty – bundle of the most-used Lua modules for libnginx-mod-http-lua.
  • lua-resty-core – FFI-based Lua API for ngx_http_lua_module / ngx_stream_lua_module (OpenResty).
  • lua-resty-lrucache – Lua-land LRU cache based on the LuaJIT FFI (OpenResty).
  • openssl-nginx – dedicated OpenSSL build tuned for nginx (kTLS, QUIC, leaner crypto defaults), packaged as libssl-nginx.
  • PSOL – Page Speed Optimisation Library for ngx_pagespeed, one build shared by every Debian and Ubuntu release.
  • libinjection – SQL injection and XSS detection library, linked into the http-waf module’s pattern-matching engine.
  • quickjs-ng – maintained fork of the QuickJS JavaScript engine, staged at build time so the njs module links against it instead of njs’s older bundled interpreter.

Custom scripts

  • reorder-modules.sh – prioritises certain nginx modules in the right load order, with Docker support.
  • cloudflare.sh – fetch Cloudflare IP ranges for inclusion in a vhost using CF-Connecting-IP.

Applied patches

The complete patch series applied to every nginx build on this repository, in the exact order the Debian packaging applies them (debian/patches/series):

  1. 0002-Make-sure-signature-stays-the-same-in-all-nginx-buil.patch – keeps the Server: response header and nginx -v output identical across the whole package matrix, so client fingerprints don’t drift between distros or rebuilds.
  2. nginx-fix-pidfile.patch – restores the correct /run/nginx.pid handling for systemd-supervised installs, preventing the post-reload PID-file race that ships in mainline.
  3. 1.30.0-zlib-ng.patch – teaches nginx’s gzip filter about zlib-ng in native mode, so the package links against the faster compressor without breaking ABI for callers expecting classic zlib.
  4. nginx_hpack.patch – carries the well-known Cloudflare HPACK encoding patch, shrinking HTTP/2 response headers (Cookie / Set-Cookie heavy workloads see the biggest win).
  5. nginx_dynamic_tls_records.patch – enables the Cloudflare dynamic TLS record sizing logic so the first byte of TLS payload arrives in a single packet, cutting time-to-first-byte over the wire.
  6. nginx-ssl_cert_cb_yield.patch – lets Lua handlers yield (cosocket calls, sleeps, redis lookups…) from inside ssl_certificate_by_lua* and ssl_session_fetch_by_lua* callbacks; required for any non-trivial dynamic-certificate setup.
  7. ssl-ktls-recv-eio-quiet.patch – with kTLS receive offload, the kernel reports a peer abort as EIO instead of ECONNRESET; this treats it as a normal disconnect, so the error log no longer fills with false [alert]/[crit] lines.
  8. myguard-branding.patch – final branding sweep: replaces vendor strings and tweaks the default error pages so packaged installs identify as nginx only, not nginx (Debian) or nginx (Ubuntu).
  9. ssl-fingerprint.patch – Captures the raw ClientHello in nginx core and exposes the fp_* fields on ngx_ssl_connection_s that the libnginx-mod-ssl-fingerprint module reads to compute JA3/JA4. Inert unless that module is built. Directive reference →
  10. ssl-cert-compression.patch – TLS certificate compression (RFC 8879) with algorithm selection. Adds the ssl_certificate_compression_algorithms directive (http/stream/mail) to restrict and reorder which algorithms are offered, on top of the upstream on/off ssl_certificate_compression switch. Directive reference →
  11. http-smuggling.patch – adds the strict_smuggling on|off; directive (default off). When on, it rejects bare-LF line endings, chunk extensions, malformed chunk sizes and chunked trailers on client requests, closing the remaining HTTP/1.1 request-smuggling gaps.
  12. max-dynamic-modules.patch – raises the dynamic-module limit from 128 to 256, so enabling a large subset of the modules on this page no longer aborts with “too many modules loaded”.

Frequently asked questions

What is NGINX used for?

NGINX is an open-source web server, reverse proxy, load balancer and HTTP cache. It serves static files, terminates TLS, HTTP/2 and HTTP/3, proxies requests to application servers such as PHP-FPM, Node.js, Python and Go, and can forward raw TCP and UDP streams. Its event-driven design handles thousands of concurrent connections per worker process with little memory.

Which Debian and Ubuntu releases are supported?

Current builds (NGINX 1.31.x) are published for Debian bookworm (12) and trixie (13), and for Ubuntu jammy (22.04), noble (24.04) and resolute (26.04), on amd64 and arm64. Each release gets its own build of NGINX, Angie, the dynamic modules and the standalone libraries, with daily-rebuilt Docker images on Docker Hub. Bullseye and focal are frozen on NGINX 1.29.2 and no longer receive updates.

What is the difference between nginx and Angie on this repo?

Angie is a drop-in-compatible NGINX fork created in 2022 by former NGINX core developers (Web Server LLC), released under a BSD licence and actively maintained. The deb.myguard.nl Angie packages share the hardening flags, most of the patches and nearly all of the dynamic modules, packaged as angie-module-*. Switching mostly means installing the Angie packages and moving your configuration from /etc/nginx to /etc/angie.

How do I enable HTTP/3 (QUIC)?

HTTP/3 is compiled in via the OpenSSL-NGINX build, so it is just configuration: add listen 443 quic reuseport; alongside the normal listen 443 ssl; and advertise it with add_header Alt-Svc 'h3=":443"; ma=86400';. See the HTTP/3 on NGINX guide linked under See also for a complete vhost.

How do I turn on kTLS?

Load the kernel TLS module with modprobe tls (and persist it via /etc/modules-load.d/), then add ssl_conf_command Options KTLS; inside your http { } block. nginx will offload the symmetric crypto to the kernel and you will see fewer userspace copies in perf top.

Can I install just the modules I need without nginx-extras?

Yes. That is the whole point of the per-module packaging. apt install nginx gives you the base; then add only libnginx-mod-http-brotli, libnginx-mod-http-modsecurity, or whatever else you want. The nginx-minimal package goes further by stripping non-essential static modules from the base build for the leanest possible footprint.

How often are the packages rebuilt?

Within a few hours of every upstream nginx release. If no patches conflict, the new .deb and Docker image are uploaded automatically. The OWASP Core Rule Set is repackaged weekly and the lua-resty bundle monthly, each on its own schedule.

Is there commercial support?

No. The packages are provided as-is; build bugs get fixed and questions are answered when time allows. If you have a serious production need (custom modules, SLA, retainer, on-call), reach out via the contact form and we can talk. For everyone else: mirror the repo into your own apt cache and pin a known-good version.

Where do I report a bug or request a module?

Open an issue on the relevant GitHub repository under the eilandert or myguard-labs accounts, or leave a comment on this site. Most of the optional modules in the list above exist because a reader asked for them.

Related deep-dives

Most of the modules and patches above have a dedicated explainer post on this site: install walk-throughs, internals, benchmarks and history. Read them for context before tuning a production stack.

Compression

TLS, HTTP/3 and OpenSSL

Security, WAF and hardening

Scripting (Lua and NJS)

Performance, benchmarks and operations

History, deprecations and releases

Mail, PHP and other packaged software

History and background

See also

See also: Self-hosting aptly: signed APT repositories with nginx.