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 }}') }}/