diff --git a/templates/vhost.conf.j2 b/templates/vhost.conf.j2 index 4c6bebe..334aa2e 100644 --- a/templates/vhost.conf.j2 +++ b/templates/vhost.conf.j2 @@ -39,7 +39,7 @@ {% if item.docroot %} ## Vhost docroot DocumentRoot "{{ item.docroot | default("/var/www/{{ item.vhostname }}") }}/" - ## Directories, there should at least be a declaration for {{ item.docroot }}/ + ## Directories, there should at least be a declaration for {{ item.docroot | default('/var/www/{{ item.vhostname }}') }}/ {% if item.root_options is defined %}