From d11cc634813b043e0601ca3a76ea5cd24f908bc1 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Thu, 8 Dec 2022 13:49:38 +0200 Subject: [PATCH] fix docroot --- templates/vhost.conf.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 %}