Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 2.03 KB

File metadata and controls

33 lines (22 loc) · 2.03 KB

Compiling the redirection.io Apache module in a Docker environment

It may happen that your hosting provider or provisioning solution installs a custom version of Apache, in non-standard paths or with incompatible dependencies. In this case, you may need to compile the redirection.io Apache module from the sources.

This example shows how to compile the redirection.io Apache module and load it in the latest release of the Apache image.

Description

The service directory contains two services:

  • apache: an Apache Dockerfile based on the httpd image, with redirection.io Apache module compiled from the sources.
  • redirectionio-agent: a simple Dockerfile to get the agent running

The redirection.io apache module

apache

redirection.io offers APT and RPM repositories, with many versions of libapache2-mod-redirectionio to match classical distribution apache packages. However, should your apache2 install vary from these traditional layouts, you will be forced to compile our apache module yourself, to match your own apache version.

This is what the apache Dockerfile achieves. Basically:

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.