How to install nginx-mod on Ubuntu
High performance web server with GetPageSpeed patches (nginx-mod)
Availability
Compare package tracks by distribution and architecture. Checkmarks show the architectures available in each repository channel.
| Distro | Channel | amd64 | arm64 | Version |
|---|---|---|---|---|
| Ubuntu 26.04 (resolute) | NGINX-MOD | 1.30.6 | ||
| Ubuntu 24.04 (noble) | NGINX-MOD | 1.30.6 | ||
| Ubuntu 22.04 (jammy) | NGINX-MOD | 1.30.6 |
Description
nginx [engine x] is an HTTP and reverse proxy server, as well as a mail proxy server. This is the GetPageSpeed "nginx-mod" build: stable nginx with an opinionated patch set (extended limit_req_rate units r/h, r/d, r/w, r/M, r/Y; dynamic TLS records; HTTP/3 :authority -> Host mapping; natural-sort autoindex; slow_start support; stricter max_headers default; dark-mode error pages) and two extra statically-built modules: * ngx_http_upstream_check_module - active backend health checks * ngx_http_upstream_api_module - NGINX Plus-compatible dynamic upstream management nginx-mod is ABI-compatible with our stable nginx. Dynamic modules from the stable channel (extras.getpagespeed.com codename suite) load against it without rebuild.
Built for Ubuntu.
Install
nginx-mod on Ubuntu 22.04 (jammy), 24.04 (noble), 26.04 (resolute)
curl -fsSL https://extras.getpagespeed.com/release-latest.deb -o /tmp/getpagespeed-release.deb sudo apt-get install -y /tmp/getpagespeed-release.deb rm /tmp/getpagespeed-release.deb sudo getpagespeed-extras-channel nginx-mod sudo apt-get update sudo apt-get install -y nginx-mod
Package downloads require an active GetPageSpeed subscription — one repository for nginx-mod and thousands more packages for Ubuntu.
Subscribe — from $10/moOther releases and channels: use the setup wizard.
Frequently asked questions
How do I install nginx-mod on Ubuntu?
Add the GetPageSpeed repository, then install the nginx-mod package with your system package manager.
Which Ubuntu versions is nginx-mod available for?
nginx-mod is available for Ubuntu 22.04, 24.04, 26.04.