Skip to content

Latest commit

 

History

History
27 lines (15 loc) · 1.83 KB

README.md

File metadata and controls

27 lines (15 loc) · 1.83 KB

Using the redirection.io nginx module in a Docker environment

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.

Description

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

The redirection.io nginx module

nginx

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.

redirectionio-agent

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.