From 70eb2a6e5730aa7188d1835b8b80e39549639e3d Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 4 Jun 2020 20:18:32 +0200 Subject: [PATCH] Allow root domains --- templates/haproxy.conf.j2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/haproxy.conf.j2 b/templates/haproxy.conf.j2 index 532cc09..19dbf27 100644 --- a/templates/haproxy.conf.j2 +++ b/templates/haproxy.conf.j2 @@ -49,7 +49,8 @@ frontend http acl root url / {% for domains in haproxy.public %} - use_backend backend-{{ domains.service }} if { hdr_beg(host) -i {{ domains.domain }} } + use_backend backend-{{ domains.service }}{% if domains.domain != "root" %} if { hdr_beg(host) -i {{ domains.domain }} }{% else %} if { hdr(host) -i redxen.eu }{% endif %} + {% endfor %} {% for pfred in haproxy.redirect.prefix %}