blob: 5dba4bd418292406688ae78565fb40dc819f3458 [file] [log] [blame]
{%- from "apache/map.jinja" import server with context -%}
{%- if site.directories is defined %}
{%- for dir_name, dir_params in site.directories.items() %}
<Directory {{ dir_params.path }}>
{%- if dir_params.auth is defined %}
{%- set auth = dir_params.auth %}
{%- include "apache/files/_auth.conf" %}
{%- else %}
AuthType none
Require all granted
{%- endif %}
{%- if dir_params.order is defined %}
Order {{ dir_params.order }}
{%- endif %}
{%- if dir_params.allow is defined %}
Allow {{ dir_params.allow }}
{%- endif %}
{%- if dir_params.modules is defined %}
{%- set _modules = dir_params.modules %}
{%- include "apache/files/_modules.conf" %}
{%- endif %}
</Directory>
{%- endfor %}
{%- endif %}