A Varnish master VMOD for Unicode normalization, case-folding, and other operations for data in the UTF-8 encoding.
For Varnish 4.1/6.0 and 6.1 refer to the oldstable and master branches, respectively.
To build this VMOD you will need:
- make
- a C compiler, e.g. GCC or clang
- pkg-config
- python-docutils or docutils in macOS [1]
- Varnish master built from sources
If you are building from Git, you will also need:
- autoconf
- automake
- libtool
In addition, you will need to set PKG_CONFIG_PATH
to the directory
where varnishapi.pc is located before running autogen.sh
and
configure
. For example:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
To install this VMOD, run the following commands:
./configure
make
make check
sudo make install
The make check
step is optional but it's good to know whether the
tests are passing on your platform.
To install from Git, clone this repository by running:
git clone --recursive https://github.com/fgsch/libvmod-utf8
And then run ./autogen.sh
followed by the instructions above for
installing from a tarball.
import utf8;
sub vcl_recv {
# Case folding
set req.url = utf8.transform(req.url, 1024);
}
This VMOD is licensed under BSD license. See LICENSE for details.
- Using Homebrew, https://github.com/Homebrew/brew/.