28
|
1 |
<IfModule mod_userdir.c>
|
|
2 |
<% if @disable_root -%>
|
|
3 |
UserDir disabled root
|
|
4 |
<% end -%>
|
|
5 |
UserDir <%= @home %>/*/<%= @dir %>
|
|
6 |
|
|
7 |
<Directory "<%= @home %>/*/<%= @dir %>">
|
|
8 |
AllowOverride FileInfo AuthConfig Limit Indexes
|
|
9 |
Options <%= @options.join(' ') %>
|
|
10 |
<Limit GET POST OPTIONS>
|
|
11 |
<%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%>
|
|
12 |
Require all granted
|
|
13 |
<%- else -%>
|
|
14 |
Order allow,deny
|
|
15 |
Allow from all
|
|
16 |
<%- end -%>
|
|
17 |
</Limit>
|
|
18 |
<LimitExcept GET POST OPTIONS>
|
|
19 |
<%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%>
|
|
20 |
Require all granted
|
|
21 |
<%- else -%>
|
|
22 |
Order allow,deny
|
|
23 |
Allow from all
|
|
24 |
<%- end -%>
|
|
25 |
</LimitExcept>
|
|
26 |
</Directory>
|
|
27 |
</IfModule>
|