summaryrefslogtreecommitdiff
path: root/templates/vhosts/webdav/partial.erb
blob: 2f78d7b0a0647cdab9158b3b7ef738610a7f7a9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
    DAVLockDB <%= real_dav_db_dir %>/DAVLock
    <Directory "<%= documentroot %>/">
        Dav on
        AllowOverride None
        <%- if options.to_s != 'absent' or do_includes.to_s == 'true' then -%>
        Options <%- unless options.to_s == 'absent' then -%><%= options %><%- end -%><%- unless options.include?('Indexes') then -%> Indexes<%- end -%>

        <%- else -%>
        Options Indexes

        <%- end -%>
<%= scope.function_template('apache/vhosts/partials/authentication.erb') %>
        <%- if ldap_auth.to_s == 'true' then -%>
        Include include.d/ldap_auth.inc
        <%- unless ldap_user.to_s == 'any' -%>
        Require ldap-user <%= ldap_user.to_s %>
        <%- else -%>
        Require valid-user
        <%- end -%>
        <%- end -%>
    </Directory>