From fa4fcfd0e30f2cc07cd51816d55727e3914fc4d5 Mon Sep 17 00:00:00 2001 From: Joao Gilberto Magalhaes Date: Thu, 4 Oct 2018 21:31:48 -0500 Subject: [PATCH] Fixing Matching Exact host --- entrypoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.py b/entrypoint.py index c2288f2..ce3a504 100644 --- a/entrypoint.py +++ b/entrypoint.py @@ -63,12 +63,12 @@ frontend http_in for k in redir: host = k.replace(".", "_") - result += " acl is_redir_{0} hdr_dom(host) -i -m end {1}\n".format(host, k) + result += " acl is_redir_{0} hdr_dom(host) -i {1}\n".format(host, k) result += " use_backend redir_{1}_{0} if is_redir_{0}\n\n".format(host, port) for k in hosts: host = k.replace(".", "_") - result += " acl is_rule_{0} hdr_dom(host) -i -m end {1}\n".format(host, k) + result += " acl is_rule_{0} hdr_dom(host) -i {1}\n".format(host, k) result += " use_backend srv_{1}_{0} if is_rule_{0}\n\n".format(host, port) for k in redir: