1#
2# DESCRIPTION
3#
4#   This file controls access and configuration for the BackupPC CGI
5#   interface.
6#
7# Distributed with BackupPC version 3.1.1, released 22 Dec 2008.
8
9<Directory      __CGIDIR__ >
10
11#
12# This section tells Apache which machines can access the GUI.
13#
14# Depending on which version of Apache you are using, you can:
15# (Apache 2.2) change the "Allow from" line to allow access from
16# your local network;
17# (Apache 2.4) change the "Require local" line to "Require ip ..."
18# to allow access from more places, see also
19# https://httpd.apache.org/docs/2.4/mod/mod_authz_host.html
20#
21# In both cases it is recommended to NOT remove "Require valid-user"
22# as removing it would make Apache no longer ask for credentials.
23#
24# Apache 2.2
25<IfModule !authz_core_module>
26  Order deny,allow
27  Deny from all
28  Allow from 127.0.0.1
29  Require valid-user
30</IfModule>
31# Apache 2.4+
32<IfModule authz_core_module>
33  <RequireAll>
34    Require local
35    Require valid-user
36  </RequireAll>
37</IfModule>
38
39#
40# You can change the authorization method to LDAP or another method
41# besides htaccess here if you are so inclined.
42#
43AuthType Basic
44AuthUserFile __CONFDIR__/BackupPC.users
45AuthName "BackupPC Community Edition Administrative Interface"
46
47</Directory>
48
49Alias           __IMAGEDIRURL__         __IMAGEDIR__
50ScriptAlias     /BackupPC_Admin         __CGIDIR__/BackupPC_Admin
51