Skip to content

Commit

Permalink
Fix directory list
Browse files Browse the repository at this point in the history
  • Loading branch information
farisc0de committed Jul 13, 2024
1 parent ddcee95 commit b2aafc7
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions templates/vhosts.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
{% endif %}

{% if vhost.directory_list is defined -%}
{% for dir in vhost.directory_list %}
<Directory "{{ vhost.directory_list[dir].documentroot }}">
{% if vhost.directory_list[dir].allow_override is defined %}
AllowOverride {{ vhost.directory_list[dir].allow_override }}
{% for directory in vhost.directory_list %}
<Directory "{{ directory.path }}">
{% if directory.allow_override is defined %}
AllowOverride {{ directory.allow_override }}
{% endif %}

{% if vhost.directory_list[dir].options is defined %}
Options {{ vhost.directory_list[dir].options }}
{% if directory.options is defined %}
Options {{ directory.options }}
{% endif %}
{% if apache_vhosts_version == "2.2" %}
Order allow,deny
Expand Down Expand Up @@ -100,14 +100,14 @@
{% endif %}

{% if vhost.directory_list is defined -%}
{% for dir in vhost.directory_list %}
<Directory "{{ vhost.directory_list[dir].documentroot }}">
{% if vhost.directory_list[dir].allow_override is defined %}
AllowOverride {{ vhost.directory_list[dir].allow_override }}
{% for directory in vhost.directory_list %}
<Directory "{{ directory.path }}">
{% if directory.allow_override is defined %}
AllowOverride {{ directory.allow_override }}
{% endif %}

{% if vhost.directory_list[dir].options is defined %}
Options {{ vhost.directory_list[dir].options }}
{% if directory.options is defined %}
Options {{ directory.options }}
{% endif %}
{% if apache_vhosts_version == "2.2" %}
Order allow,deny
Expand Down

0 comments on commit b2aafc7

Please sign in to comment.