summaryrefslogtreecommitdiffstats
path: root/adei/configs/apache.conf
blob: 87e3c87d177f1436df86c3645831effa0d4347a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<Location /adei/admin/>
    AuthType            Basic
    AuthName            "ADEI/Admin Authentication"
    AuthBasicProvider   file
    AuthUserFile        /adei/cfg/passwd.admin
    <RequireAny>
        Require         valid-user
        Require         ip 127.0.0.1
        Require         ip ::1
    </RequireAny>
</Location>

<Location /adei/services/control.php>
    AuthType            Basic
    AuthName            "ADEI/Control Authentication"
    AuthBasicProvider   file
    AuthUserFile        /adei/cfg/passwd.admin
    <RequireAny>
        Require         valid-user
        Require         ip 127.0.0.1
        Require         ip ::1
    </RequireAny>
</Location>

<Location /adei/>
    SetEnvIf Request_URI "adei/probe\.php$"  health_check
    SetEnvIf Request_URI "adei/services/sched\.php"  service

    AuthType            Basic
    AuthName            "ADEI Authentication"
    AuthBasicProvider   file
    AuthUserFile        /adei/cfg/passwd.user
    <RequireAny>
        Require         all granted
        Require         valid-user
        Require         env health_check
        Require         env service
        Require        ip 127.0.0.1
        Require        ip ::1
    </RequireAny>
</Location>