blob: 57a4c9789a10f5d6441428cf2ae8c90ff40aa894 [file] [log] [blame]
#
# This file is managed by puppet.
#
Alias /BackupPC/images <%= scope.lookupvar('backuppc::params::cgi_image_dir') %>
ScriptAlias /BackupPC <%= scope.lookupvar('backuppc::params::cgi_directory') %>/BackupPC_Admin
ScriptAlias /backuppc <%= scope.lookupvar('backuppc::params::cgi_directory') %>/BackupPC_Admin
<Directory <%= scope.lookupvar('backuppc::params::install_directory') %>>
Order deny,allow
Deny from all
Allow from <%= @apache_allow_from %>
<% if @apache_require_ssl -%>
SSLRequireSSL
<% end -%>
AuthType Basic
AuthUserFile <%= scope.lookupvar('backuppc::params::htpasswd_apache') %>
AuthName "BackupPC"
require valid-user
</Directory>