blob: 30e2e5ab15668f190efcb35df0cab884fce221d1 [file] [log] [blame]
#
# This file is managed by puppet.
#
Alias /backuppc <%= scope.lookupvar('backuppc::params::cgi_directory') %>
<Directory <%= scope.lookupvar('backuppc::params::cgi_directory') %>>
AllowOverride None
Order deny,allow
Deny from all
Allow from <%= @apache_allow_from %>
<% if @apache_require_ssl -%>
SSLRequireSSL
<% end -%>
Options ExecCGI FollowSymlinks
AddHandler cgi-script .cgi
DirectoryIndex index.cgi
AuthUserFile <%= scope.lookupvar('backuppc::params::htpasswd_apache') %>
AuthType basic
AuthName "BackupPC"
require valid-user
</Directory>