|
|
d51543e |
<DirectoryMatch /usr/(share|libexec)/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 |
|
|
|
d51543e |
</DirectoryMatch>
|
|
|
93e12e4 |
|
|
|
93e12e4 |
|
|
|
93e12e4 |
Alias /BackupPC/images /usr/share/BackupPC/html/
|
|
|
d51543e |
ScriptAlias /BackupPC /usr/libexec/BackupPC/BackupPC_Admin
|
|
|
d51543e |
ScriptAlias /backuppc /usr/libexec/BackupPC/BackupPC_Admin
|