aboutsummaryrefslogtreecommitdiffstats
path: root/web/etc/apache2/nms.tg15.gathering.org
diff options
context:
space:
mode:
Diffstat (limited to 'web/etc/apache2/nms.tg15.gathering.org')
-rw-r--r--web/etc/apache2/nms.tg15.gathering.org20
1 files changed, 16 insertions, 4 deletions
diff --git a/web/etc/apache2/nms.tg15.gathering.org b/web/etc/apache2/nms.tg15.gathering.org
index e177d44..a671c0a 100644
--- a/web/etc/apache2/nms.tg15.gathering.org
+++ b/web/etc/apache2/nms.tg15.gathering.org
@@ -11,10 +11,22 @@
AddHandler cgi-script .cgi .sh .pl .py
AddDefaultCharset UTF-8
- AuthUserFile /root/tgmanage/web/.htpasswd
- AuthName "Tech:Server Secret Volcano Lair"
- AuthType Basic
- require valid-user
+ SetEnvIF ^X-Forwarded-For$ "^185\.12\.59\.12$" AllowIP
+ SetEnvIF ^X-Forwarded-For$ "^2a02:ed02:1337::12$" AllowIP
+
+ <RequireAny>
+ AuthUserFile /root/tgmanage/web/.htpasswd
+ AuthName "Tech:Server Secret Volcano Lair"
+ AuthType Basic
+ Require valid-user
+
+ Require env AllowIP
+ </RequireAny>
+
+ #AuthUserFile /root/tgmanage/web/.htpasswd
+ #AuthName "Tech:Server Secret Volcano Lair"
+ #AuthType Basic
+ #require valid-user
</Directory>
ErrorLog /var/log/apache2/error-nms.tg15.gathering.org.log