How to install nginx-module-var on Debian

Dynamic variable assignment through predefined functions

Vendor: GetPageSpeed https://github.com/dvershinin/ngx_http_var_module

Availability

Compare package tracks by distribution and architecture. Checkmarks show the architectures available in each repository channel.

Distro Channel amd64 arm64 Version
Debian 13 (trixie) Stable 1.30.6+0.1.3
NGINX mainline 1.31.8+0.1.3
Debian 12 (bookworm) Stable 1.30.6+0.1.3
NGINX mainline 1.31.8+0.1.3

Description

The var module dynamically assigns new variables through predefined functions for NGINX. It provides operators like get_arg and get_upstream_cookie to retrieve argument and upstream set-cookie values. This is useful for complex configuration scenarios where you need to compute or extract variable values.

Built for Debian.

Install

Stable Debian 12, 13

nginx-module-var on Debian 12 (bookworm), 13 (trixie)

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 apt-get update
sudo apt-get install -y nginx-module-var
NGINX mainline Debian 12, 13

nginx-module-var on Debian 12 (bookworm), 13 (trixie)

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 mainline
sudo apt-get update
sudo apt-get install -y nginx-module-var

Package downloads require an active GetPageSpeed subscription — one repository for nginx-module-var and thousands more packages for Debian.

Subscribe — from $10/mo

Other releases and channels: use the setup wizard.

Frequently asked questions

How do I install nginx-module-var on Debian?

Add the GetPageSpeed repository, then install the nginx-module-var package with your system package manager.

Which Debian versions is nginx-module-var available for?

nginx-module-var is available for Debian 12, 13.

Subscribe