diff --git a/templates/vhost.conf.j2 b/templates/vhost.conf.j2 index 8366ef4..4c6bebe 100644 --- a/templates/vhost.conf.j2 +++ b/templates/vhost.conf.j2 @@ -9,8 +9,8 @@ ServerAlias {% for alias in item.server_aliases %}{{ alias }} {% endfor %} {% endif %} - ## 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 }}') }}/ + Options +FollowSymlinks AllowOverride All @@ -37,11 +37,11 @@ {% if item.docroot %} ## Vhost docroot - DocumentRoot "{{ item.docroot|default("/var/www/{{ item.vhostname }}") }}/" + DocumentRoot "{{ item.docroot | default("/var/www/{{ item.vhostname }}") }}/" ## Directories, there should at least be a declaration for {{ item.docroot }}/ - + {% if item.root_options is defined %} Options {% for option in item.root_options %}{{ option }} {% endfor %} {% endif %}