Bernard Johnson 1166e64
<Directory       /usr/share/BackupPC/>
93e12e4
# BackupPC requires valid authentication in order for the web interface to
93e12e4
# function properly.  One can view the web interface without authentication
93e12e4
# though all functionality is disabled.
93e12e4
# 
93e12e4
# htpasswd -c /etc/BackupPC/apache.users yourusername
93e12e4
# 
93e12e4
93e12e4
AuthType Basic
93e12e4
AuthUserFile /etc/BackupPC/apache.users
11ec765
AuthName "BackupPC"
93e12e4
Bernard Johnson 1166e64
<IfModule mod_authz_core.c>
Bernard Johnson 1166e64
  # Apache 2.4
Bernard Johnson 1166e64
  <RequireAll>
Bernard Johnson 1166e64
    Require valid-user
Bernard Johnson 1166e64
    <RequireAny>
Bernard Johnson 1166e64
      Require local
Bernard Johnson 1166e64
    </RequireAny>
Bernard Johnson 1166e64
  </RequireAll>
Bernard Johnson 1166e64
</IfModule>
Bernard Johnson 1166e64
<IfModule !mod_authz_core.c>
Bernard Johnson 1166e64
  # Apache 2.2
Bernard Johnson 1166e64
  order deny,allow
Bernard Johnson 1166e64
  deny from all
Bernard Johnson 1166e64
  allow from 127.0.0.1
Bernard Johnson 1166e64
  allow from ::1
Bernard Johnson 1166e64
  require valid-user
Bernard Johnson 1166e64
</IfModule>
Bernard Johnson 1166e64
93e12e4
93e12e4
</Directory>
93e12e4
93e12e4
93e12e4
Alias           /BackupPC/images        /usr/share/BackupPC/html/
93e12e4
ScriptAlias     /BackupPC               /usr/share/BackupPC/sbin/BackupPC_Admin
Bernard Johnson 508f63b
ScriptAlias     /backuppc               /usr/share/BackupPC/sbin/BackupPC_Admin