From a1fe7a952c8a9f3bda3475af97227bda929c054e Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Thu, 8 Dec 2022 13:54:30 +0200 Subject: [PATCH] fix template --- templates/vhost.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/vhost.conf.j2 b/templates/vhost.conf.j2 index 334aa2e..9ff70db 100644 --- a/templates/vhost.conf.j2 +++ b/templates/vhost.conf.j2 @@ -36,7 +36,7 @@ {% endfor %}{% endif %} -{% if item.docroot %} ## Vhost docroot +{% if item.docroot is defined %} ## Vhost docroot DocumentRoot "{{ item.docroot | default("/var/www/{{ item.vhostname }}") }}/" ## Directories, there should at least be a declaration for {{ item.docroot | default('/var/www/{{ item.vhostname }}') }}/