{
  "id": 21432766,
  "title": "nginx \"unknown directive http2\" — the One-Line Fix, and Why apt upgrade Brings It Back",
  "url": "https://urgent.news/2026/11/23/nginx-unknown-directive-http2-the-one-line-fix-and-why-apt-upgrade",
  "topic": "world",
  "section": "World",
  "published": "2026-11-23T17:18:36.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/daanial/nginx-unknown-directive-http2-the-one-line-fix-and-why-apt-upgrade-brings-it-back-p7j"
  },
  "original_language": "en",
  "account": "A newly installed mail server on Ubuntu 24.04 experienced a web side failure after an nginx configuration issue. The problem stemmed from the distribution providing an outdated version of nginx (1.24.0) that did not recognize a newly introduced directive in the vendor config, \"http2 on;\". Because the web services relied on nginx, the entire server went down when the update was applied. The issue was not with the mail service itself, but with the outdated nginx configuration. The fix involved checking nginx version, identifying and commenting out the \"http2 on;\" line, restarting nginx, and verifying the service was active and accessible through a browser. The issue would recur if the distribution updated nginx and overwrote the user-edited configuration file.",
  "summary": "A field note about a mail server whose web side went fully dark on a fresh install — one directive nginx did not know, the version gap behind it, and why the fix silently disappears on the next apt upgrade . The message was short. “Webmail is down. The admin panel is down too.” The server was a self-hosted grommunio box on Ubuntu 24.04 — a proof-of-concept mail platform, freshly installed. “Is…",
  "key_points": [
    "Ubuntu 24.04 installed mail server with outdated nginx 1.24.0",
    "\"http2 on;\" directive unrecognized by outdated nginx version",
    "Fix involves checking version, commenting out directive, restarting service"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}