From 3a99f84118f67142f095a8103c610cf68d25b2fb Mon Sep 17 00:00:00 2001 From: Lars Holm Nielsen Date: Fri, 26 Jul 2019 22:32:46 +0200 Subject: [PATCH] docker: fix haproxy to pass host header check --- {{cookiecutter.project_shortname}}/docker/haproxy/haproxy.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/{{cookiecutter.project_shortname}}/docker/haproxy/haproxy.cfg b/{{cookiecutter.project_shortname}}/docker/haproxy/haproxy.cfg index 462c45b..17a0325 100644 --- a/{{cookiecutter.project_shortname}}/docker/haproxy/haproxy.cfg +++ b/{{cookiecutter.project_shortname}}/docker/haproxy/haproxy.cfg @@ -44,7 +44,7 @@ backend ssl_app http-check disable-on-404 option http-server-close option forwardfor except 127.0.0.0/8 - option httpchk HEAD /ping HTTP/1.0 + option httpchk HEAD /ping HTTP/1.1\r\nHost:\ localhost server web1 frontend:443 check check-ssl fall 2 inter 20000 maxconn 30 rise 1 ssl verify none weight 2 backend ssl_static @@ -52,5 +52,5 @@ backend ssl_static http-check disable-on-404 option http-server-close option forwardfor except 127.0.0.0/8 - option httpchk HEAD /ping HTTP/1.0 + option httpchk HEAD /ping HTTP/1.1\r\nHost:\ localhost server web1 frontend:443 check check-ssl fall 2 inter 5000 maxconn 255 rise 1 ssl verify none weight 2