We distribute our nginx module as Debian/Ubuntu or Red Hat packages, which are available in our repositories.
This example shows how to use the pre-compiled redirection.io nginx module provided in our repositories in a Docker environment.
Tip
If your nginx setup is not compatible with our pre-compiled packages, you can compile the module from sources.
The service
directory contains two services:
- nginx: a nginx Dockerfile based on the Ubuntu 24.04 image, with nginx and the redirection.io nginx module installed from our apt repository
- redirectionio-agent: a simple Dockerfile to get the agent running
This is a standard Ubuntu 24.04 image, with the distribution-provided nginx package, and libnginx-mod-redirectionio installed from our deb repository, as explained in our documentation.
It defines a single VirtualHost, for which redirection is enabled.
The agent is installed using our manual installation instructions. Note that we have enabled a /var/lib/redirectionio
volume, used to store redirection.io agent's cache data.