<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <id>https://n.wtf/</id>
    <title>N.WTF</title>
    <updated>2026-10-22T19:50:13.673Z</updated>
    <generator>https://github.com/jpmonette/feed</generator>
    <author>
        <name>m.ac</name>
        <uri>https://m.ac/</uri>
    </author>
    <link rel="alternate" href="https://n.wtf/"/>
    <link rel="self" href="https://n.wtf/atom.xml"/>
    <subtitle>Open-source nginx Debian / Ubuntu repository with latest mainline builds.</subtitle>
    <rights>© 2026 N.WTF</rights>
    <entry>
        <title type="html"><![CDATA[nginx 1.31.8]]></title>
        <id>https://n.wtf/blog/nginx-1-31-8/</id>
        <link href="https://n.wtf/blog/nginx-1-31-8/"/>
        <updated>2026-10-22T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[A bug fix release a week after the 1.31.7 security update, with no CVEs. It changes how working_directory resolves relative paths, silences a kernel TLS log alert, and fixes an HTTP/3 crash on strict alignment platforms.]]></summary>
        <content type="html"><![CDATA[<p>Upstream released <a href="https://nginx.org/en/CHANGES">nginx 1.31.8</a> on October 21, 2026, and the n.wtf packages are now published for all <a href="https://n.wtf/install/">supported Debian and Ubuntu releases</a>. Nothing in the upstream changelog is marked as a security fix, and the bundled OpenSSL stays at 4.0.3. If you have not installed <a href="https://n.wtf/blog/nginx-1-31-7/">1.31.7</a> yet, this upgrade brings its five security fixes along.</p>
<h2>working_directory is now relative to the prefix</h2>
<p><code>working_directory</code> sets where worker processes run, which mostly decides where core dumps land. A relative path used to resolve against whatever directory nginx was started from. It now resolves against the nginx prefix, which is <code>/usr/share/nginx</code> in these packages (see <code>--prefix</code> in <code>nginx -V</code>).</p>
<p>Absolute paths behave as before, so only a relative setting needs checking. Separately, an invalid <code>working_directory</code> no longer makes workers exit on start or during a reload.</p>
<h2>Kernel TLS log noise</h2>
<p>With kernel TLS on OpenSSL 3.2.0 or newer, closing an SSL connection could log <code>recv() failed (5: Input/output error)</code> alerts. nginx now ignores the error once the connection has been shut down.</p>
<p>The n.wtf packages build OpenSSL with <code>enable-ktls</code>, and 4.0.3 is well past 3.2.0. Kernel TLS stays off until you turn it on, usually with <code>ssl_conf_command Options KTLS;</code> alongside <code>sendfile on;</code>. If you have, and your error log has been collecting those alerts, they stop after this upgrade.</p>
<h2>HTTP/3 on strict alignment platforms</h2>
<p>Workers could be killed by <code>SIGBUS</code> when serving <a href="https://n.wtf/modules/http3/">HTTP/3</a> on platforms with strict alignment requirements. The <a href="https://github.com/nginx/nginx/pull/1317">fix</a> is in the Huffman encoder: in HTTP/3 its output pointer can sit at any offset, and it was writing 32 or 64 bits at a time through a cast pointer. The n.wtf packages are built for amd64 and arm64, so the crash is unlikely to show up here. The same release also <a href="https://github.com/nginx/nginx/pull/1701">removes undefined behaviour</a> when the HTTP/3 parser meets empty field values.</p>
<h2>JSON parser API change</h2>
<p>Upstream changed the JSON parser&#39;s internal API: strings containing escape sequences are now reported as separate events, and <code>ngx_json_unescape_string()</code> decodes into a separate buffer. The <a href="https://n.wtf/modules/json/">JSON module</a> is built into these packages with its directives unchanged, so configs using <code>json_set</code> keep working as they are. The change affects third-party C modules that call the parser directly.</p>
<p>The last fix in the changelog is a build failure on Solaris with <code>--with-control-api</code>, which does not affect Debian or Ubuntu.</p>
<h2>Changes</h2>
<ul>
<li>Upgrade nginx to 1.31.8</li>
</ul>
<h2>How to upgrade</h2>
<pre><code class="language-bash">sudo apt update
sudo apt full-upgrade

nginx -v
# nginx version: nginx-n.wtf/1.31.8
</code></pre>
<p>The module set and configure arguments are the same as in 1.31.7, so there is no config to touch unless you use a relative <code>working_directory</code>.</p>
<p>Not on the repository yet? The <a href="https://n.wtf/install/">install page</a> has extrepo, one-line, DEB822, and Docker instructions.</p>
]]></content>
        <author>
            <name>m.ac</name>
            <uri>https://m.ac/</uri>
        </author>
        <published>2026-10-22T00:00:00.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[nginx 1.31.7]]></title>
        <id>https://n.wtf/blog/nginx-1-31-7/</id>
        <link href="https://n.wtf/blog/nginx-1-31-7/"/>
        <updated>2026-10-15T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[A security release. nginx 1.31.7 fixes five CVEs, including two worker buffer overflows and an HTTP/3 request body bug, and the bundled OpenSSL moves to 4.0.3, which fixes fourteen more.]]></summary>
        <content type="html"><![CDATA[<p>Upstream released <a href="https://nginx.org/en/CHANGES">nginx 1.31.7</a> on October 14, 2026, and the n.wtf packages are now published for all <a href="https://n.wtf/install/">supported Debian and Ubuntu releases</a>. Five of the upstream changes are security fixes. The statically linked OpenSSL also moves to 4.0.3, which is a security release too, so upgrade soon.</p>
<h2>Security fixes in nginx</h2>
<p>From the <a href="https://nginx.org/en/CHANGES">upstream changelog</a>:</p>
<ul>
<li>A buffer overflow in a worker process when the <code>alias</code> directive serves a request whose URI was changed by <code>rewrite</code> and then mapped to a file path (<a href="https://nvd.nist.gov/vuln/detail/CVE-2026-15176">CVE-2026-15176</a>).</li>
<li>A buffer overflow in a worker process while evaluating string expressions with variables, which affected the document root calculation and request logging in the http and stream modules (<a href="https://nvd.nist.gov/vuln/detail/CVE-2026-93479">CVE-2026-93479</a>).</li>
<li>Over HTTP/3, part of an unknown frame could be treated as request body, which could bypass <code>client_max_body_size</code> or inject data into the proxied request (<a href="https://nvd.nist.gov/vuln/detail/CVE-2026-95101">CVE-2026-95101</a>).</li>
<li>With TLS session ticket key rotation, one of the keys was left uninitialized, which could allow a session to be forged (<a href="https://nvd.nist.gov/vuln/detail/CVE-2026-97629">CVE-2026-97629</a>).</li>
<li>With asynchronous file I/O (AIO), a use-after-free in certain configurations when an SSI page has <code>include virtual</code> commands (<a href="https://nvd.nist.gov/vuln/detail/CVE-2026-97205">CVE-2026-97205</a>).</li>
</ul>
<p>The first two reach the most configs: <code>alias</code> combined with <code>rewrite</code> is common, and nearly every config has variables in <code>root</code> or <code>log_format</code>. The HTTP/3 fix applies if you serve <a href="https://n.wtf/modules/http3/">HTTP/3</a>, the session ticket fix if you rotate keys with more than one <code>ssl_session_ticket_key</code>, and the SSI fix only if you run <code>aio</code> together with SSI <code>include virtual</code>.</p>
<h2>Other changes upstream</h2>
<ul>
<li>The <a href="https://n.wtf/modules/geoip/"><code>ngx_http_geoip_module</code></a> and <a href="https://n.wtf/modules/stream-geoip/"><code>ngx_stream_geoip_module</code></a> now support databases in the MaxMind DB (MMDB) format. Upstream documents this as requiring the libmaxminddb library. The <a href="https://n.wtf/modules/geoip2/">GeoIP2 module</a> is still in these packages either way.</li>
<li>Backend SSL certificates can now be verified by IP address.</li>
<li>QUIC now supports reconfiguration and binary upgrade when <code>quic_bpf</code> is in use.</li>
<li>The <a href="https://n.wtf/modules/http2/">HTTP/2 module</a> now uses the RFC 9218 prioritization scheme, and RFC 7540 priority signals are ignored.</li>
</ul>
<p>Among the bug fixes: serving a cached <code>X-Accel-Redirect</code> response could segfault a worker or log <code>request count is zero</code> alerts, and the WebDAV module could segfault on COPY and MOVE in a location with <code>alias</code>. A low <code>http3_stream_buffer_size</code> could get QUIC connections closed with <code>quic flood detected</code>, a bug present since 1.27.5.</p>
<p>One fix changes what you will see in the logs. nginx used to treat an SSL connection closed without <code>close_notify</code>, including a reset, as a clean shutdown. It now logs <code>SSL_read() failed</code> for those, so a jump in that message after the upgrade is expected.</p>
<h2>OpenSSL 4.0.3</h2>
<p>The packages now link <a href="https://github.com/openssl/openssl/blob/openssl-4.0/CHANGES.md">OpenSSL 4.0.3</a>, released September 29, 2026. It fixes fourteen CVEs. The only one rated High is in DTLS retransmission (<a href="https://nvd.nist.gov/vuln/detail/CVE-2026-84782">CVE-2026-84782</a>), and nginx does not use DTLS.</p>
<p>Two are closer to a web server&#39;s concerns. A use-after-free in the X.509 extension cache, rated Moderate, can crash a multi-threaded server that requests client certificates when several connections build chains to the same CA at once (<a href="https://nvd.nist.gov/vuln/detail/CVE-2026-84783">CVE-2026-84783</a>). A certificate with many relative CRL distribution points can make OpenSSL allocate far more memory than it should, rated Low (<a href="https://nvd.nist.gov/vuln/detail/CVE-2026-35189">CVE-2026-35189</a>); servers are exposed only if they ask for client certificates.</p>
<p>Several more Low fixes are in OpenSSL&#39;s QUIC stack: amplification credit accounting, stream reassembly, flow control and connection ID backlogs. nginx has its own QUIC implementation and uses OpenSSL for the TLS handshake, so these mostly matter to other software built on OpenSSL&#39;s QUIC.</p>
<h2>Changes</h2>
<ul>
<li>Upgrade nginx to 1.31.7</li>
<li>Upgrade OpenSSL to 4.0.3</li>
</ul>
<h2>How to upgrade</h2>
<pre><code class="language-bash">sudo apt update
sudo apt full-upgrade

nginx -v
# nginx version: nginx-n.wtf/1.31.7
</code></pre>
<p>To check the bundled OpenSSL, run <code>nginx -V</code> and look for <code>built with OpenSSL 4.0.3 29 Sep 2026</code> on the third line.</p>
<p>Not on the repository yet? The <a href="https://n.wtf/install/">install page</a> has extrepo, one-line, DEB822, and Docker instructions.</p>
]]></content>
        <author>
            <name>m.ac</name>
            <uri>https://m.ac/</uri>
        </author>
        <published>2026-10-15T00:00:00.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[nginx 1.31.6]]></title>
        <id>https://n.wtf/blog/nginx-1-31-6/</id>
        <link href="https://n.wtf/blog/nginx-1-31-6/"/>
        <updated>2026-09-16T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[A security release. Upstream fixes a heap buffer overflow in HTTP/3 that needs an old OpenSSL to trigger, and closes two holes in the predicate location code that shipped two weeks ago.]]></summary>
        <content type="html"><![CDATA[<p>Upstream released <a href="https://nginx.org/en/CHANGES">nginx 1.31.6</a> on September 15, 2026, and the n.wtf packages are now published for all <a href="https://n.wtf/install/">supported Debian and Ubuntu releases</a>. It is a security release, though the exposure for these packages is smaller than the label suggests. Read the first section and decide for yourself; the bug fixes below are reason enough to upgrade anyway.</p>
<h2>CVE-2026-90439</h2>
<p>The advisory is for <a href="https://nvd.nist.gov/vuln/detail/CVE-2026-90439">CVE-2026-90439</a>, a heap buffer overflow in <code>ngx_http_v3_module</code>. Under certain configurations, a worker process handling a QUIC TLS handshake can write past a heap buffer. Upstream rates it Moderate, CVSS 6.9, and lists versions 1.29.2 through 1.31.5 as affected. The likely outcome is a worker crash and restart rather than code execution, but a crash you can trigger from the network is still a crash you can trigger from the network.</p>
<p>The condition that matters: it only happens when nginx is built against OpenSSL 3.5.0 or earlier. Those OpenSSL versions have no QUIC TLS API of their own, so nginx runs its compatibility layer, and that is where the bug lives. The n.wtf packages have linked OpenSSL 4.0.x since 1.31.2, currently 4.0.2, which uses the native API and skips the compat layer entirely. As far as this advisory goes, these packages were not exposed.</p>
<p>The other side of the same coin is a small behaviour change: nginx now ignores the QUIC transport parameters extension if it turns up in a plain TLS connection. Nothing legitimate sends that, so you will not notice.</p>
<p>If you run a distro nginx or a self-built one against an older OpenSSL with HTTP/3 on, the advisory does apply to you. Upgrade, or switch <code>listen ... quic</code> off until you can.</p>
<h2>Predicate location fixes</h2>
<p>1.31.5 added <a href="https://n.wtf/blog/nginx-1-31-5/">predicate locations</a>, and two bugs in them are fixed here. First, if evaluating the predicate variable failed, the error was silently swallowed and the predicate treated as false, so the request fell through to the next location instead of erroring out. Second, an error during a nested location lookup could be ignored when regex or predicate locations sat at the same level. Both are the kind of thing you would only see as a request quietly landing in the wrong block. If you started using <code>location $var</code> after the last post, this is the release to be on.</p>
<h2>Other fixes</h2>
<p>Binary upgrade, the <code>USR2</code> dance, refused to work when the control API socket was configured and the new binary had the perl module compiled in. These packages build perl as a dynamic module, <code>libnginx-mod-http-perl</code>. If you load it and use the control API, this one is probably yours.</p>
<p>A <code>geo</code> block with the <code>ranges</code> parameter could segfault at config load time if its binary base file was corrupted. The file is now checksummed before use. Unlikely to bite anyone, but a crash on <code>nginx -t</code> from a stale cache file is an unpleasant way to start an incident.</p>
<h2>Changes</h2>
<ul>
<li>Upgrade nginx to 1.31.6</li>
</ul>
<h2>How to upgrade</h2>
<pre><code class="language-bash">sudo apt update
sudo apt full-upgrade

nginx -v
# nginx version: nginx-n.wtf/1.31.6
</code></pre>
<p>The bundled OpenSSL stays at 4.0.2 and the module set is unchanged from 1.31.5, so this is a straight package swap with no config to touch.</p>
<p>Not on the repository yet? The <a href="https://n.wtf/install/">install page</a> has extrepo, one-line, DEB822, and Docker instructions.</p>
]]></content>
        <author>
            <name>m.ac</name>
            <uri>https://m.ac/</uri>
        </author>
        <published>2026-09-16T00:00:00.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[nginx 1.31.5]]></title>
        <id>https://n.wtf/blog/nginx-1-31-5/</id>
        <link href="https://n.wtf/blog/nginx-1-31-5/"/>
        <updated>2026-09-03T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[A feature release. Locations can now match on a variable, request bodies can be read before location matching, and the new JSON module is built into the n.wtf packages.]]></summary>
        <content type="html"><![CDATA[<p>Upstream released <a href="https://nginx.org/en/CHANGES">nginx 1.31.5</a> on September 2, 2026, and the n.wtf packages are now published for all <a href="https://n.wtf/install/">supported Debian and Ubuntu releases</a>. No entry in the upstream changelog is marked as a security fix, and the bundled OpenSSL stays at 4.0.2. One of the bug fixes closes a use-after-free in HTTP/2 proxying, which is reason enough to upgrade.</p>
<p>Three new features are worth a look: predicate locations, early request body reads, and the JSON module. The first two are in the nginx core. The third needs a configure flag, and these packages set it.</p>
<h2>Predicate locations</h2>
<p>A <code>location</code> can now be selected by a variable instead of a URI:</p>
<pre><code class="language-nginx">map $http_user_agent $is_ai_scraper {
    default        0;
    ~*GPTBot       1;
    ~*ClaudeBot    1;
}

server {
    location $is_ai_scraper {
        return 403;
    }

    location / {
        proxy_pass http://backend;
    }
}
</code></pre>
<p>The block is entered when the variable is non-empty and not the string <code>0</code>, the same truth test <code>if</code> uses. Anything that ends up in a variable can drive it: a <code>map</code> over a header, a <code>geo</code> block over the client address, a client certificate field, or a request body field pulled out by the JSON module below. This is the routing people have been faking with <code>if</code> and <code>rewrite</code> for years, done in the location tree where the rest of the config expects it.</p>
<h2>Early request body reads</h2>
<p><code>client_body_early_read</code> makes nginx read the request body right after the headers arrive, before location matching, using the body size and buffer settings from the <code>server</code> block. It takes one or more strings and switches on when any of them is non-empty and not <code>0</code>:</p>
<pre><code class="language-nginx">map $http_content_type $is_json {
    application/json  1;
}

server {
    client_body_early_read $is_json;
    client_max_body_size    256;
    client_body_buffer_size 256;
}
</code></pre>
<p>The point is to have <code>$request_body</code> populated in time for a predicate location, or the JSON module, to look at it. Two caveats from the <a href="https://nginx.org/en/docs/http/ngx_http_core_module.html#client_body_early_read">upstream documentation</a>: it does not work with modules that stream the body unbuffered, such as gRPC, nor with modules that write the body to a file, such as WebDAV. <code>client_body_in_file_only</code> is ignored while the early read is active.</p>
<h2>The JSON module</h2>
<p><a href="https://n.wtf/modules/json/"><code>ngx_http_json_module</code></a> extracts members of a JSON document held in a variable into further variables. Upstream ships it disabled behind <code>--with-http_json_module</code>; the n.wtf packages are built with the flag, so it is compiled into the binary and needs no <code>load_module</code> line. The three features chain together:</p>
<pre><code class="language-nginx">map $http_content_type $is_json {
    application/json  1;
}

client_body_early_read $is_json;

json_set $req_method $request_body method;

map $req_method $is_search {
    search  1;
}

server {
    location $is_search {
        proxy_pass http://search-backend;
    }

    location / {
        proxy_pass http://backend;
    }
}
</code></pre>
<p>Paths use dots for object members and zero-based brackets for array elements, as in <code>user.name</code> or <code>items[0]</code>. A member name containing a dot or a bracket is written as a quoted JSON string inside brackets, such as <code>&#39;[&quot;a.b.com&quot;]&#39;</code>. The document is parsed once per request, on first access to any of the extracted variables, and <code>json_max_depth</code> caps nesting at 32 levels by default. Full details are on the <a href="https://n.wtf/modules/json/">module page</a> and in the <a href="https://nginx.org/en/docs/http/ngx_http_json_module.html">upstream documentation</a>.</p>
<h2>Bug fixes</h2>
<p>The one to note is a use-after-free in a worker process when proxying with buffering to an HTTP/2 client and an error occurred while sending the response. Upstream lists it as a bug fix rather than a security fix, but freed heap memory being touched on an error path is not something to leave running.</p>
<p>Also fixed: a worker could fail to exit, or log <code>accept4() failed (9: Bad file descriptor)</code>, if it ran out of file descriptors before a graceful shutdown; FastCGI and uwsgi requests were malformed when a parameter name was too long; and there are smaller fixes in HTTP/3, the slice module and the memcached module.</p>
<h2>Changes</h2>
<ul>
<li>Upgrade nginx to 1.31.5</li>
<li>Build in the <a href="https://n.wtf/modules/json/"><code>ngx_http_json_module</code></a> (<code>--with-http_json_module</code>)</li>
</ul>
<h2>How to upgrade</h2>
<pre><code class="language-bash">sudo apt update
sudo apt full-upgrade

nginx -v
# nginx version: nginx-n.wtf/1.31.5
</code></pre>
<p>Not on the repository yet? The <a href="https://n.wtf/install/">install page</a> has extrepo, one-line, DEB822, and Docker instructions.</p>
]]></content>
        <author>
            <name>m.ac</name>
            <uri>https://m.ac/</uri>
        </author>
        <published>2026-09-03T00:00:00.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[nginx 1.31.4]]></title>
        <id>https://n.wtf/blog/nginx-1-31-4/</id>
        <link href="https://n.wtf/blog/nginx-1-31-4/"/>
        <updated>2026-08-26T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[A quiet release upstream, but the packaging around it changed a lot. Every third-party module is now dynamic, Brotli and Zstd moved to opt-in snippets, and the bundled OpenSSL jumps to 4.0.2.]]></summary>
        <content type="html"><![CDATA[<p>Upstream released <a href="https://nginx.org/en/CHANGES">nginx 1.31.4</a> on August 19, 2026, and the n.wtf packages are now published for all <a href="https://n.wtf/install/">supported Debian and Ubuntu releases</a>. nginx itself carries no security fixes this time. The statically linked OpenSSL does, so these packages are still a security update.</p>
<p>Most of the work this time is on the packaging side. If you serve Brotli or Zstd, read the two module sections first: both now need a line of config they did not need before.</p>
<h2>What changed upstream</h2>
<p><code>proxy_protocol</code> in the stream and mail modules can now send PROXY protocol version 2 to backends, where before it only spoke version 1. HTTP/2 and gRPC requests to backends are now always sent with the <code>:authority</code> pseudo-header, and HTTP/1.1 requests with <code>Host</code>.</p>
<p>It also fixes a worker segfault when the <code>select</code> method was in use, treats incomplete gRPC responses carrying a non-zero <code>Content-Length</code> as malformed, and repairs a binary compatibility break with third-party modules using script codes that appeared in 1.31.3. That last one matters here, since these packages ship eighteen third-party modules.</p>
<h2>OpenSSL 4.0.2</h2>
<p>We rebuild against the newest OpenSSL on every packaging run, so 1.31.4 links <a href="https://github.com/openssl/openssl/releases/tag/openssl-4.0.2">OpenSSL 4.0.2</a>, released August 25, 2026. It is a security patch release; the most severe issue is rated Moderate.</p>
<p>Eleven CVEs are fixed. The ones most likely to touch a web server are a double free when a QUIC server processes an <code>INITIAL</code> packet (<a href="https://nvd.nist.gov/vuln/detail/CVE-2026-18798">CVE-2026-18798</a>), unbounded memory growth in the QUIC incoming channel queue (<a href="https://nvd.nist.gov/vuln/detail/CVE-2026-14456">CVE-2026-14456</a>), excessive memory buffering DTLS records for a future epoch (<a href="https://nvd.nist.gov/vuln/detail/CVE-2026-54874">CVE-2026-54874</a>), and a heap buffer overflow in CMS key unwrapping (<a href="https://nvd.nist.gov/vuln/detail/CVE-2026-63072">CVE-2026-63072</a>). If you serve HTTP/3, take the QUIC ones seriously.</p>
<h2>Every third-party module is now dynamic</h2>
<p>Brotli, Zstandard and ACME used to be compiled straight into the binary with <code>--add-module</code>. They are built with <code>--add-dynamic-module</code> from this release on, which means all eighteen third-party modules are <code>.so</code> files under <code>/usr/lib/nginx/modules/</code>, each in its own package. On a running box:</p>
<pre><code class="language-bash">nginx -V 2&gt;&amp;1 | tr &#39; &#39; &#39;\n&#39; | grep add-dynamic-module
</code></pre>
<p>Brotli and Zstd land in <code>libnginx-mod-http-brotli</code> and <code>libnginx-mod-http-zstd</code>, which the plain <code>nginx</code> metapackage pulls in; ACME and IPDB are in <code>libnginx-mod-http-acme</code> and <code>libnginx-mod-http-ipdb</code>, which come with <code>nginx-extras</code>. Nothing was dropped; <code>nginx-extras</code> still installs every one of them. Each <a href="https://n.wtf/modules/">module page</a> now lists the package it ships in.</p>
<h2>Brotli and Zstd are opt-in</h2>
<p>Their settings used to be symlinked into <code>conf.d</code> and were active the moment the package landed. Two packages writing compression directives into the same http block collide, so both now install a snippet instead:</p>
<pre><code class="language-nginx"># /etc/nginx/nginx.conf, inside http { }
include /etc/nginx/snippets/brotli.conf;
include /etc/nginx/snippets/zstd.conf;
</code></pre>
<p>Both lines ship commented out. Uncomment the ones you want, or include the snippet in a single server or location block if you would rather scope it. <code>brotli.conf</code> turns on the filter and static modules at compression level 5 with a MIME type list for text, JSON, XML, SVG and web fonts; <code>zstd.conf</code> turns on the filter and static modules and leaves the module defaults alone. Obsolete <code>conf.d</code> symlinks from earlier packages are removed on upgrade.</p>
<p><code>gzip_vary</code> is now on in the shipped <code>nginx.conf</code> as well. With three encodings in play, proxies and CDNs need <code>Vary: Accept-Encoding</code> to keep the compressed and identity variants apart.</p>
<h2>A hardened Zstd module</h2>
<p>The <a href="https://n.wtf/modules/zstd/">Zstandard module</a> is now built from the <a href="https://github.com/u-sb/zstd-nginx-module">u-sb fork</a>, which takes Alex Zhang&#39;s original and merges the memory safety work and test suites from <a href="https://github.com/myguard-labs/nginx-zstd-module">myguard-labs</a> and <a href="https://github.com/GetPageSpeed/zstd-nginx-module">GetPageSpeed</a>.</p>
<p>Its defaults are more useful than the original&#39;s: <code>zstd_comp_level</code> is 3, <code>zstd_min_length</code> is 1024, and <code>zstd_types</code> already covers HTML, text, CSS, JavaScript, JSON, XML and SVG, so <code>zstd on;</code> on its own is a sane production config. New directives include <code>zstd_max_length</code>, <code>zstd_long</code>, <code>zstd_window_log</code>, <code>zstd_max_cctx_memory</code> and <code>zstd_bypass</code>.</p>
<h2>Changes</h2>
<ul>
<li>Upgrade nginx to 1.31.4</li>
<li>Upgrade OpenSSL to 4.0.2</li>
<li>Build every third-party module dynamically, with Brotli and Zstd in their own packages</li>
<li>Ship Brotli and Zstd settings as snippets under <code>/etc/nginx/snippets/</code></li>
<li>Enable <code>gzip_vary</code> by default</li>
<li>Switch the Zstandard module to the hardened u-sb fork</li>
<li>Add Ubuntu 26.10 Stonking builds</li>
</ul>
<h2>How to upgrade</h2>
<pre><code class="language-bash">sudo apt update
sudo apt full-upgrade

nginx -v
# nginx version: nginx-n.wtf/1.31.4
</code></pre>
<p><code>full-upgrade</code> matters more than usual here: the module split adds new packages, and plain <code>apt upgrade</code> will hold nginx back rather than install them. If <code>apt</code> asks what to do about <code>/etc/nginx/nginx.conf</code>, keeping your own version is fine. All you miss are the two commented <code>include</code> lines above, which you can add by hand.</p>
<p>Not on the repository yet? The <a href="https://n.wtf/install/">install page</a> has extrepo, one-line, DEB822, and Docker instructions.</p>
]]></content>
        <author>
            <name>m.ac</name>
            <uri>https://m.ac/</uri>
        </author>
        <published>2026-08-26T00:00:00.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[nginx 1.31.3]]></title>
        <id>https://n.wtf/blog/nginx-1-31-3/</id>
        <link href="https://n.wtf/blog/nginx-1-31-3/"/>
        <updated>2026-07-17T00:00:00.001Z</updated>
        <summary type="html"><![CDATA[Upstream fixes three security issues, including a heap buffer overflow in map with regex. Packages are live for all supported releases, upgrade now.]]></summary>
        <content type="html"><![CDATA[<p>Upstream released <a href="https://nginx.org/en/CHANGES">nginx 1.31.3</a> on July 15, 2026, and the n.wtf packages are now published for all <a href="https://n.wtf/install/">supported Debian and Ubuntu releases</a>. This is a security release. If you run 1.31.2 or older from this repository, upgrade now.</p>
<h2>Security fixes</h2>
<p>Three vulnerabilities are fixed, all in the worker process:</p>
<ul>
<li><a href="https://nvd.nist.gov/vuln/detail/CVE-2026-42533">CVE-2026-42533</a>: a heap buffer overflow when a <code>map</code> directive with regex matching feeds a string expression, and a similar case with non-cacheable variables. This is the one to take seriously; <code>map</code> with regex is everywhere.</li>
<li><a href="https://nvd.nist.gov/vuln/detail/CVE-2026-60005">CVE-2026-60005</a>: uninitialized memory access with unnamed regex captures combined with the <code>slice</code> directive or background cache updates. Upstream says it can disclose worker memory or crash the worker.</li>
<li><a href="https://nvd.nist.gov/vuln/detail/CVE-2026-56434">CVE-2026-56434</a>: a use-after-free in the SSI filter when processing a crafted proxied backend response.</li>
</ul>
<p>If your config uses <code>map</code> with regex captures, <code>slice</code>, proxy caching, or SSI, treat the upgrade as urgent. Everyone else should not wait either; the full details are public in the <a href="https://github.com/nginx/nginx/releases/tag/release-1.31.3">upstream release notes</a>.</p>
<h2>Also in this release</h2>
<p>Beyond the security fixes, 1.31.3 rejects HTTP/2 requests with out-of-order pseudo-headers, disables external entity loading in the XSLT filter by default (with a new <code>xml_external_entities</code> directive to turn it back on), and adds <code>*_socket_sndbuf</code> / <code>*_socket_rcvbuf</code> directives for tuning upstream socket buffers across the proxy, FastCGI, gRPC, SCGI, and uWSGI modules.</p>
<h2>Changes</h2>
<ul>
<li>Upgrade nginx to 1.31.3</li>
<li>Upgrade <a href="https://n.wtf/modules/acme/">nginx-acme</a> to 0.4.1</li>
</ul>
<h2>How to upgrade</h2>
<pre><code class="language-bash">sudo apt update
sudo apt full-upgrade

nginx -v
# nginx version: nginx-n.wtf/1.31.3
</code></pre>
<p><code>full-upgrade</code> lets <code>apt</code> add or remove dependencies when the package set changes between releases; plain <code>apt upgrade</code> can hold nginx back in that case.</p>
<p>Not on the repository yet? The <a href="https://n.wtf/install/">install page</a> has extrepo, one-line, DEB822, and Docker instructions.</p>
]]></content>
        <author>
            <name>m.ac</name>
            <uri>https://m.ac/</uri>
        </author>
        <published>2026-07-17T00:00:00.000Z</published>
    </entry>
    <entry>
        <title type="html"><![CDATA[nginx, Nginx, or NGINX?]]></title>
        <id>https://n.wtf/blog/nginx-nginx-or-nginx/</id>
        <link href="https://n.wtf/blog/nginx-nginx-or-nginx/"/>
        <updated>2026-07-17T00:00:00.000Z</updated>
        <summary type="html"><![CDATA[The lowercase name is the software, the all-caps name is a brand, and n.wtf follows the software.]]></summary>
        <content type="html"><![CDATA[<p>Open <a href="https://www.f5.com/products/nginx">f5.com/products/nginx</a> and the word appears in capitals everywhere: &quot;F5 NGINX: Built for cloud-native apps&quot;, NGINX One, NGINX Plus, NGINX Ingress Controller. Open <a href="https://nginx.org/en/">nginx.org</a> and the very first sentence reads &quot;nginx (&quot;engine x&quot;) is an HTTP web server, reverse proxy, content cache, load balancer, TCP/UDP proxy server, and mail proxy server.&quot; Lowercase, even at the start of the sentence.</p>
<p>Both pages are official. They just name different things. The lowercase spelling is the name of the open-source server, chosen by its author and used consistently by the project itself. The all-caps spelling is a commercial brand that now belongs to F5. n.wtf packages the server, so this site writes nginx.</p>
<h2>The project has always been lowercase</h2>
<p>Igor Sysoev released nginx in 2004, and the project has written the name in lowercase ever since. <a href="https://nginx.org/en/">nginx.org</a> uses it throughout, including at sentence starts, and the <a href="https://nginx.org/en/CHANGES">CHANGES</a> file for every release does the same. Netcraft looked at this exact question in a 2018 piece, <a href="https://www.netcraft.com/blog/nginx-nginx-nginx-or-nginx">&quot;nginx, Nginx, NGiИX, or NGINX?!&quot;</a>, and noted that the lowercase form also appeared in the HTTP Server headers of the 447 million sites running it at the time.</p>
<p>A stock installation still answers the same way. nginx.org itself, for example:</p>
<pre><code class="language-bash">curl -sI https://nginx.org/ | grep -i &#39;^server&#39;
# Server: nginx/1.29.8
</code></pre>
<p>The ecosystem inherited the casing. The binary is <code>/usr/sbin/nginx</code>, the Debian and Ubuntu package is <code>nginx</code>, the config test command is <code>nginx -t</code>, and the packages from this repository identify themselves as <code>nginx-n.wtf</code> in <code>nginx -V</code> output. Nothing in the software itself ever prints NGINX. This site&#39;s own header says <code>Server: n.wtf</code> instead, set with the <a href="https://n.wtf/modules/headers-more/">headers-more</a> module, but that is us overriding the default, not the default.</p>
<h2>The capitals came with the company</h2>
<p>The all-caps form arrived with commercialization. Nginx, Inc. was founded in 2011 to build a business around the server, later selling NGINX Plus, and it stylized the name as NGINX in its marketing. As the Netcraft piece points out, the company at one point drew the distinction itself: the company was &quot;Nginx&quot;, the server it promoted was &quot;NGINX&quot;. After <a href="https://www.f5.com/company/news/press-releases/f5-completes-acquisition-of-nginx">F5 completed its acquisition of the company in May 2019</a>, the brand followed, which is why every product on the F5 site today is NGINX-something.</p>
<p>The logo sidesteps the question entirely. It spells NGiИX with a mirrored Cyrillic И, a nod to the project&#39;s Russian origins, and matches neither spelling.</p>
<p>None of this is a complaint. F5 owns the <a href="https://www.f5.com/company/policies/trademarks">NGINX trademark</a> and can style its products however it likes. It just means the capitals mark F5&#39;s commercial line: NGINX Plus, NGINX One, NGINX Gateway Fabric. The server that Debian, Ubuntu, and this repository ship is the open-source project from nginx.org, and that project calls itself nginx.</p>
<h2>What this means on n.wtf</h2>
<p>This site follows upstream. Prose says nginx, lowercase, sentence start included. Package names, commands, and version strings are lowercase because that is what the software actually emits. The all-caps form appears in exactly one place: the trademark notice in the footer, because a trademark should be written the way its owner registered it.</p>
<p>If you upgrade through <a href="https://n.wtf/install/">this repository</a>, the casing question answers itself every time you check a version:</p>
<pre><code class="language-bash">nginx -v
# nginx version: nginx-n.wtf/1.31.3
</code></pre>
<p>The software tells you its own name.</p>
]]></content>
        <author>
            <name>m.ac</name>
            <uri>https://m.ac/</uri>
        </author>
        <published>2026-07-17T00:00:00.000Z</published>
    </entry>
</feed>