GetPageSpeed Extras

vmod-re

How to install vmod-re on Amazon Linux

Regular expression module with subexpression capture for Varnish Cache

License: BSD https://gitlab.com/uplex/varnish/libvmod-re

Availability

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

Distro Channel aarch64 x86_64 Version
Amazon Linux 2023 Varnish 6.0 LTS 6.0.18+2.5
Amazon Linux 2 Varnish 6.0 LTS 6.0.18+2.5

Description

Varnish Module (VMOD) for matching strings against regular expressions, and for extracting captured substrings after matches. Matching is equivalent to VCL's infix operator ~, but unlike standard VCL -- where capturing a backreference requires a second, less efficient regsub() over the whole subject -- this VMOD exposes captured subexpressions directly via .backref(), so one match is enough. Complements vmod-re2, which offers the Google RE2 engine (linear-time, but without backreference capture).

Built for Amazon Linux.

Install

Varnish 6.0 LTS Amazon Linux 2, 2023

vmod-re on Amazon Linux 2, 2023

sudo dnf -y install https://extras.getpagespeed.com/release-latest.rpm
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --enable getpagespeed-extras-varnish60
sudo dnf -y install vmod-re

Package downloads require an active GetPageSpeed subscription — one repository for vmod-re and thousands more packages for Amazon Linux.

Subscribe — from $10/mo

Frequently asked questions

How do I install vmod-re on Amazon Linux?

Add the GetPageSpeed repository, then install the vmod-re package with your system package manager.

Which Amazon Linux versions is vmod-re available for?

vmod-re is available for Amazon Linux 2, 2023.

Subscribe