deb.myguard.nl · drop-in NGINX replacement

Angie web server for Debian & Ubuntu

The maintained NGINX fork from former NGINX core developers, packaged for apt: built-in ACME, a JSON status API, HTTP/3 and the same module set as our NGINX stack. Same config syntax, new home in /etc/angie/.

Current version:1.12.6
Last built:2026-11-26
Module packages:up to 113

These are Angie packages for Debian and Ubuntu: the latest Angie build for five releases, with up to 113 module packages and an ACME client compiled into the core. The Angie web server is the NGINX fork started in 2022 by former NGINX core developers, and it reads the same configuration language you already know.

What it doesn’t read is /etc/nginx/. Remember that path. It’s the one that bites.

They share the hardening flags, most of the patches and nearly all of the modules of our NGINX packages for Debian and Ubuntu, rebuilt for Angie under angie-module-* names. Pick the binary you want and the modules follow you.

What is Angie, and why run it instead of NGINX?

Angie is a fork of NGINX maintained by developers who used to work on NGINX itself. Directives, config syntax and the dynamic-module model are the same. On top of that you get a built-in ACME client for Let’s Encrypt, a JSON status API and a release cadence that isn’t tied to F5’s product roadmap.

If you run Certbot only to feed certificates to NGINX, Angie is the better server for you. Certbot, a systemd timer and a reload hook make three moving parts to keep one file fresh, and each of them has failed on somebody’s Sunday. Angie renews in-process.

Stay on NGINX if you depend on something F5 ships only for NGINX, or if your config management assumes /etc/nginx/ on every host and you’d rather not touch it. Both stacks here get the same module rebuilds, so the choice comes down to features.

How do I install Angie on Debian or Ubuntu?

Add the repository, install the server, then install modules as packages. The APT repository setup guide has the signing key and sources line for each release.

apt update
apt install angie
apt install angie-module-http-brotli angie-module-http-geoip2

Each module package drops a load_module snippet into /etc/angie/modules-enabled/, and the stock angie.conf includes that directory near the top. There’s nothing to add by hand. Test, then reload:

angie -t
systemctl reload angie

One install-time gotcha: if NGINX still holds port 80, the post-install script prints Not attempting to start NGINX, port 80 is already in use. and leaves Angie stopped. Yes, it says NGINX. The maintainer scripts came over from the nginx packaging, error strings included.

Migrating from NGINX: what carries over and what doesn’t

Syntax carries over. Paths don’t. Angie’s main config is /etc/angie/angie.conf, and the package installs sites-available, sites-enabled, conf.d and snippets under /etc/angie/, just like Debian’s nginx packaging under /etc/nginx/.

Migrating from NGINX to Angie: copy /etc/nginx/ into /etc/angie/ and swap libnginx-mod packages for angie-module packages
  1. Copy the server blocks: cp -a /etc/nginx/sites-available/. /etc/angie/sites-available/, then recreate the symlinks in /etc/angie/sites-enabled/.
  2. Hunt the old paths with grep -rn /etc/nginx /etc/angie/. Every include, ssl_certificate and auth_basic_user_file with an absolute nginx path still points at the old tree, which works right up until you purge the nginx package.
  3. Swap modules. Every libnginx-mod-* package except libnginx-mod-http-lua-upstream has an angie-module-* counterpart built from the same source.
  4. Switch servers: angie -t && systemctl disable --now nginx && systemctl enable --now angie.

Rolling back is the same steps in reverse, and the nginx tree is untouched because you copied it rather than moved it. Keep it that way until Angie has survived its first certificate renewal.

Let’s Encrypt certificates without Certbot

This build compiles in Angie’s http_acme_module. Declare a client, point a server block at it, and Angie requests and renews the certificate itself:

http {
    resolver 127.0.0.53;
    acme_client letsencrypt https://acme-v02.api.letsencrypt.org/directory;

    server {
        listen 80;
        listen 443 ssl;
        server_name example.com www.example.com;

        acme letsencrypt;
        ssl_certificate     $acme_cert_letsencrypt;
        ssl_certificate_key $acme_cert_key_letsencrypt;
    }
}

The resolver line isn’t decoration. Angie looks up the ACME directory host at runtime, so point it at whatever resolver the host actually runs. Port 80 has to answer from the internet for the HTTP-01 challenge. The complete Angie guide walks through a full vhost and the renewal behaviour.

The JSON status API

NGINX gives you stub_status: seven numbers in plain text. Angie’s api directive serves a JSON tree of connections, server zones, upstream peers and caches:

location /status/ {
    api /status/;
    allow 127.0.0.1;
    deny all;
}

Give your upstreams a shared-memory zone and your server blocks a status_zone, then curl -s http://127.0.0.1/status/http/upstreams/ shows per-peer state and response counts. Keep the allow/deny pair. This endpoint describes your whole backend topology to anyone who asks.

What’s in this Angie build

  • Linked against openssl-nginx, our OpenSSL 4.0 build for web servers, configured with enable-ktls, enable-tfo and TLS 1.3.
  • HTTP/3 over QUIC (--with-http_v3_module). The HTTP/3 and QUIC setup guide applies to Angie unchanged.
  • Kernel TLS, per server, once you ask for it with ssl_conf_command Options KTLS;.
  • Compiled at -O2 with LTO off, _FORTIFY_SOURCE=3 and the Debian hardening flags.
  • The module list and the patch series below, both generated from the package source.

Post-quantum TLS with ML-KEM

openssl-nginx 4.0 ships with ML-KEM (FIPS 203) support, so hybrid post-quantum key exchange is a one-liner:

ssl_ecdh_curve X25519MLKEM768:X25519:prime256v1:secp384r1;

Any client offering X25519MLKEM768 gets the hybrid X25519+ML-KEM-768 handshake; all others fall back to the classical groups. See the post-quantum TLS guide for how to check which group your clients negotiated.

Applied patches

The patch series applied to every Angie build, in order:

  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. 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.
  3. 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.
  4. 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.
  5. 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).
  6. 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 →
  7. http-smuggling.patch – (no description yet — document in sync-stack-pages.py PATCH_DOCS)

Standalone libraries provided

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

  • libmodsecurity3 – v3 library component used by the nginx connector.
  • libcoraza – C/Go WAF engine linked by angie-module-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 the Lua module (angie-module-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 and Angie (kTLS, QUIC, leaner crypto defaults), packaged as libssl-nginx.
  • PSOL – Page Speed Optimisation Library, per-distro builds for ngx_pagespeed.
  • 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.

All dynamic modules

Every module ships as an angie-module-* package and enables itself on install through /etc/angie/modules-enabled/. Remove the package to unload it.

Security & WAF modules

Authentication modules

Compression modules

Geo-location & analytics modules

Access control & rate limiting modules

Cache management modules

Lua & scripting modules

Headers & response manipulation modules

Static serving & WebDAV modules

Streaming & real-time modules

Upstream & load balancing modules

TLS & fingerprinting modules

Built-in modules (no separate package needed)

  • http-tunnel (core built-in) – the upstream nginx Tunnel HTTP module (ngx_http_tunnel_module, new in nginx 1.31.2, inherited by Angie) — proxies CONNECT-style TCP tunnels through the HTTP layer via tunnel_pass, with full upstream load-balancing and failover. Compiled in by default; no separate package to install.

Other modules

Angie packages for Debian and Ubuntu: supported releases

  • Debian 13 Trixie and 12 Bookworm
  • Ubuntu 26.04 Resolute, 24.04 Noble and 22.04 Jammy

Every release is built for amd64 and arm64. The module count depends on the release and the architecture:

  • Trixie and Resolute: 113 module packages on amd64, 111 on arm64.
  • Bookworm, Noble and Jammy: 111 on amd64, 109 on arm64. The Coraza WAF and OpenTelemetry modules are built only for Trixie and Resolute.
  • On arm64, every release leaves out the PageSpeed and Perl modules.

On Trixie, Bookworm, Resolute, Noble and Jammy, Angie compresses gzip responses through zlib-ng: the angie package depends on libz-ng2. The Bullseye 1.10.2 and forky 1.12.0 builds don’t depend on libz-ng2, so this doesn’t apply to them.

Bullseye and Focal still have Angie 1.10.2 on amd64, but they’ve left the build matrix and won’t get newer releases or security fixes. Treat that package as a reason to upgrade the host. The forky suite (Debian testing) holds Angie 1.12.0, a copy of an older Trixie build that hasn’t been updated, so use Trixie for production.

Docker images

Daily-rebuilt Angie images with the same modules are on Docker Hub (eilandert). The Angie and NGINX Docker images page lists the tags.

Frequently asked questions

Is Angie a drop-in replacement for NGINX?
For configuration syntax, yes. Angie parses NGINX directives and loads the same modules, rebuilt as angie-module-* packages. For file paths, no. Angie reads /etc/angie/angie.conf, so copy your config across before you switch.
Can Angie and NGINX be installed at the same time?
Yes. The packages don’t conflict, but only one of them can bind ports 80 and 443. Angie’s post-install script won’t start the service while port 80 is taken, so stop nginx first.
Does Angie renew Let’s Encrypt certificates without Certbot?
Yes. The ACME module is compiled into this build. Add an acme_client in the http block and an acme directive in the server block, keep port 80 reachable for the HTTP-01 challenge, and Angie renews in-process.
Why don’t my modules load after I copied my nginx.conf?
A copied nginx.conf still includes /etc/nginx/modules-enabled/, which loads libnginx-mod-* objects built for NGINX. Install the matching angie-module-* packages and include /etc/angie/modules-enabled/*.conf instead.
Which Debian and Ubuntu releases get Angie packages?
Debian 13 Trixie and 12 Bookworm, and Ubuntu 26.04, 24.04 and 22.04, on amd64 and arm64. Each release gets its own build of the server, the dynamic modules and the standalone libraries.

Related deep-dives

The modules and patches above are covered in more depth elsewhere on the site.

Angie and NGINX

TLS, HTTP/3 and OpenSSL

Compression

Security and WAF

Scripting and operations

Report issues

Open an issue at github.com/myguard-labs/deb.myguard.nl.