summaryrefslogtreecommitdiff
path: root/templates/vhosts/perl/partial.erb
blob: a8c30c3d0c3ce032525329f8c3a4642f8bab77d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
    <Directory "<%= documentroot %>/">
<%= scope.function_template(['apache/vhosts/partials/std_override_options.erb']) %>

<%= scope.function_template(['apache/vhosts/partials/authentication.erb']) %>
    </Directory>

    <% unless htpasswd_file.to_s == 'absent' -%>
    <Directory "<%= cgi_binpath %>/">
        AuthType Basic
        AuthName "Access fuer <%= servername %>"
        AuthUserFile <%= real_htpasswd_path %>
        require valid-user
    </Directory>
    <% end -%>
    ScriptAlias /cgi-bin/ <%= cgi_binpath %>/