NGINX Modules for Plesk on Ubuntu and Debian
GetPageSpeed publishes sw-nginx-module-* packages built specifically for the
sw-nginx binary supplied by Plesk. They do not replace Plesk NGINX. Each
package depends on the exact sw-nginx version used for its build, so APT will
reject an incompatible module instead of loading it into the wrong ABI.
Supported systems
| Distribution | Releases | Architecture |
|---|---|---|
| Ubuntu | 20.04 (focal), 22.04 (jammy), 24.04 (noble) | amd64 |
| Debian | 12 (bookworm), 13 (trixie) | amd64 |
The Plesk DEB cohort uses the stable suite for each release. It is separate
from the stock nginx-module-* packages described elsewhere on this site.
Install a Plesk module
- Subscribe to the Plesk tier using the public IPv4 address of the Plesk server.
-
Install the GetPageSpeed repository package:
curl -fsSL https://extras.getpagespeed.com/release-latest.deb \ -o /tmp/getpagespeed-extras-release.deb sudo apt-get install -y /tmp/getpagespeed-extras-release.deb sudo apt-get update -
Install and enable a module. For example, Headers More:
sudo apt-get install sw-nginx-module-headers-more sudo plesk sbin nginx_modules_ctl --enable headers-more sudo /usr/sbin/nginx -t
Use the same module handle shown in the package name when calling
nginx_modules_ctl. A successful nginx -t is the final compatibility check.
Find available packages
List the Plesk packages visible to your server:
apt-cache search '^sw-nginx-module-'
The production cohort contains more than 100 modules, including Headers More,
NDK, Set Misc, RTMP, JWT, Security Headers, Dynamic ETag, Cache Purge, and
Zstandard. Module directive documentation on this site still applies, but use
the sw-nginx-module- package prefix shown above.
Plesk already bundles Brotli, so the cohort does not duplicate it. GeoIP2 and modules restricted to the stock stable branch are also excluded.
Troubleshooting
If APT returns 403 Forbidden, confirm that the subscription contains the
server's current public IPv4 address:
curl https://www.getpagespeed.com/ip2.php
If APT reports an unsatisfied exact sw-nginx dependency, update Plesk and run
sudo apt-get update again. Do not force-install the DEB or bypass the
dependency: it protects NGINX from loading a module built for another ABI.