summaryrefslogtreecommitdiffstats
path: root/adei/configs/apache.conf
diff options
context:
space:
mode:
Diffstat (limited to 'adei/configs/apache.conf')
-rw-r--r--adei/configs/apache.conf56
1 files changed, 36 insertions, 20 deletions
diff --git a/adei/configs/apache.conf b/adei/configs/apache.conf
index 5ea312d..87e3c87 100644
--- a/adei/configs/apache.conf
+++ b/adei/configs/apache.conf
@@ -1,25 +1,41 @@
<Location /adei/admin/>
- AuthType Basic
- AuthName "ADEI/Admin Authentication"
- AuthBasicProvider file
- AuthUserFile /adei/cfg/apache.passwd
- Require valid-user
- Order deny,allow
- Deny from all
- Allow from 127.0.0.1
- Allow from ::1
- Satisfy Any
+ 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/apache.passwd
- Require valid-user
- Order deny,allow
- Deny from all
- Allow from 127.0.0.1
- Allow from ::1
- Satisfy Any
+ 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>