nginx “unknown directive http2” — the One-Line Fix, and Why apt upgrade Brings It Back
On a fresh install, nginx on an Ubuntu 24.04 mail server refused to start with unknown directive “http2”, taking webmail, the admin panel and every web port down at once. The vendor config used a directive that needs nginx 1.25.1; Ubuntu ships 1.24.0. Commenting one line fixes it, but the file lives under /usr/share, so the next apt upgrade puts it back.