summaryrefslogtreecommitdiff
path: root/templates/vhosts/perl/partial.erb
blob: 888c268a2af38a4256e1d31f993d61f0386ae43f (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 %>/