HAProxy Enterprise Documentation 1.5r2


Install the Update module as follows for your platform:

$ # On Debian/Ubuntu
$ sudo apt-get install hapee-1.5r2-lb-update
$ # On CentOS/RedHat/Oracle
$ sudo yum install hapee-1.5r2-lb-update


  1. In the global section of your configuration file, add a module-load directive to load the Update module:

       module-load hapee-lb-update.so
  2. Below the global section, add a new configuration section named dynamic-update. Inside, add one or more update lines that specify from where and how often to download new content. Here is an example that updates the contents of a file at /etc/hapee-1.5/redirects.map from the URL

       update id /etc/hapee-1.5/redirects.map map url delay 300s

    As an example, the contents of this file could be a list of IP subnets and URL paths to redirect clients to if their IP address falls within one of the ranges:     /maint/maintenance.html /maint/forbiden.html        /maint/deny.html

    In the following snippet, a frontend references this data using an acl directive and an http-request redirect directive:

    frontend fe_main
       mode http
       bind :80
       acl redirect_needed src,map_ip(/etc/hapee-1.5/redirects.map) -m found
       http-request redirect location src,map_ip(/etc/hapee-1.5/redirects.map) if redirect_needed

Next up

TLS session ticket keys