diff --git a/templates/vhost.conf.j2 b/templates/vhost.conf.j2 index 0edb502..0722c0c 100644 --- a/templates/vhost.conf.j2 +++ b/templates/vhost.conf.j2 @@ -55,6 +55,7 @@ AllowOverride All +## End of root directory {% endif %} {% if item.directories is defined %}{% for directory in item.directories %} @@ -62,11 +63,13 @@ {% if directory.options is defined %} Options {% for option in directory.options %}{{ option }} {% endfor %} {% endif %} + AllowOverride {{ directory.allow_override | default("All") }} Require {{ directory.require | default("all granted") }} {{ directory.custom_code | default("") }} {% endfor %}{% endif %} +## End of directories {% if item.directoriesmatches is defined %}{% for directorymatch in item.directoriesmatches %} @@ -79,6 +82,7 @@ {{ directorymatch.custom_code | default("") }} {% endfor %}{% endif %} +## End of directorymatches ## Logging ErrorLog "/var/log/apache2/{{ item.vhostname }}_error_ssl.log"