diff options
Diffstat (limited to 'config/haproxy')
-rw-r--r-- | config/haproxy/haproxy.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/haproxy/haproxy.inc b/config/haproxy/haproxy.inc index 59350259..65d09521 100644 --- a/config/haproxy/haproxy.inc +++ b/config/haproxy/haproxy.inc @@ -149,7 +149,7 @@ function haproxy_configure() { fwrite ($fd, "{$listenip}"); // https is an alias for tcp for clarity purpouses - if($backend['type'] == "https") + if(strtolower($backend['type']) == "https") $backend_type = "tcp"; else $backend_type = $backend['type']; @@ -160,15 +160,15 @@ function haproxy_configure() { fwrite ($fd, "\toption\t\t\thttpclose\n"); fwrite ($fd, "\toption\t\t\tforwardfor\n"); + if($backend['type'] == "https") + fwrite ($fd, "\toption\t\t\tssl-hello-chk\n"); + if($backend['max_connections']) fwrite ($fd, "\tmaxconn\t\t\t" . $backend['max_connections'] . "\n"); if($backend['client_timeout']) fwrite ($fd, "\tclitimeout\t\t" . $backend['client_timeout'] . "\n"); - if($backend['type']) - fwrite ($fd, "\tmode\t\t\t" . $backend['type'] . "\n"); - if($backend['balance']) fwrite ($fd, "\tbalance\t\t\t" . $backend['balance'] . "\n"); |