Allow root domains

This commit is contained in:
Alex 2020-06-04 20:18:32 +02:00
parent 7100274321
commit 70eb2a6e57
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 2 additions and 1 deletions

View File

@ -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 %}