From 26a2e26a28e0331c8b261a5987a84977e3e9778c Mon Sep 17 00:00:00 2001 From: bbonnot Date: Tue, 4 Jul 2017 12:13:17 +0200 Subject: [PATCH] Adding htwpasswd option --- templates/vhost.j2 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/templates/vhost.j2 b/templates/vhost.j2 index 0feb602..027f35b 100644 --- a/templates/vhost.j2 +++ b/templates/vhost.j2 @@ -32,7 +32,17 @@ server { {% endif %} {% if item.error_log is defined %} error_log {{ item.error_log }} error; -{% endif %} +{% endif %}} + +{% if item.auth_basic is defined %} + auth_basic {{ item.auth_basic }}; +{%endif %} + + +{% if item.auth_basic_user_file is defined %} + auth_basic_user_file {{ item.auth_basic_user_file }}; +{%endif %} + {% if item.return is defined %} return {{ item.return }};