blob: 721b9e6d34a11f1eb10c479ba09077824da5bbd0 [file] [log] [blame]
{%- if site.locations is defined %}
{%- for location in site.locations %}
{%- if location.script is defined and location.script %}
ScriptAlias {{ location.uri }} {{ location.path }}
{%- else %}
Alias {{ location.uri }} {{ location.path }}
{%- endif %}
{%- if location.auth is defined %}
{%- set auth = location.auth %}
<Location {{ location.uri }}>
{%- include "apache/files/_auth.conf" %}
</Location>
{%- endif %}
{%- if location.webdav is defined %}
Dav {% if location.webdav.get('enabled', True) %}on{% else %}off{% endif %}
{%- endif %}
{%- endfor %}
{%- endif %}