28 lines
752 B
Plaintext
28 lines
752 B
Plaintext
<IfModule mod_userdir.c>
|
|
<% if @disable_root -%>
|
|
UserDir disabled root
|
|
<% end -%>
|
|
UserDir <%= @dir %>
|
|
|
|
<Directory "<%= @home %>/*/<%= @dir %>">
|
|
AllowOverride FileInfo AuthConfig Limit Indexes
|
|
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
|
|
<Limit GET POST OPTIONS>
|
|
<%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%>
|
|
Require all denied
|
|
<%- else -%>
|
|
Order allow,deny
|
|
Allow from all
|
|
<%- end -%>
|
|
</Limit>
|
|
<LimitExcept GET POST OPTIONS>
|
|
<%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%>
|
|
Require all denied
|
|
<%- else -%>
|
|
Order allow,deny
|
|
Allow from all
|
|
<%- end -%>
|
|
</LimitExcept>
|
|
</Directory>
|
|
</IfModule>
|