aboutsummaryrefslogtreecommitdiffstats
path: root/web/etc
diff options
context:
space:
mode:
Diffstat (limited to 'web/etc')
-rw-r--r--web/etc/apache2/nms.tg16.gathering.org.conf25
1 files changed, 18 insertions, 7 deletions
diff --git a/web/etc/apache2/nms.tg16.gathering.org.conf b/web/etc/apache2/nms.tg16.gathering.org.conf
index 13fbefb..9a6d7cd 100644
--- a/web/etc/apache2/nms.tg16.gathering.org.conf
+++ b/web/etc/apache2/nms.tg16.gathering.org.conf
@@ -4,23 +4,34 @@
ServerAlias einstein.tg16.gathering.org
DocumentRoot /srv/tgmanage/web/nms.gathering.org
+ ScriptAlias /api/private/ /srv/tgmanage/web/nms.gathering.org/api/private/
+ ScriptAlias /api/public/ /srv/tgmanage/web/nms.gathering.org/api/public/
+ <Directory "/srv/tgmanage/web/nms.gathering.org/api/private/">
+ AllowOverride None
+ Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
+ <RequireAny>
+ AuthUserFile /srv/tgmanage/web/.htpasswd
+ AuthName "Tech:Server Secret Volcano Lair"
+ AuthType Basic
+ Require valid-user
+ </RequireAny>
+ </Directory>
+ <Directory "/srv/tgmanage/web/nms.gathering.org/api/public/">
+ AllowOverride None
+ Options +ExecCGI -MultiViews +Indexes +SymLinksIfOwnerMatch
+ Require all granted
+ </Directory>
<Directory "/srv/tgmanage/web/nms.gathering.org">
AllowOverride None
- Options Indexes FollowSymLinks ExecCGI MultiViews
+ Options Indexes FollowSymLinks MultiViews
- AddHandler cgi-script .cgi .sh .pl .py
AddDefaultCharset UTF-8
- SetEnvIF ^X-Forwarded-For$ "^185\.12\.59\.12$" AllowIP
- SetEnvIF ^X-Forwarded-For$ "^2a02:ed02:1337::12$" AllowIP
-
<RequireAny>
AuthUserFile /srv/tgmanage/web/.htpasswd
AuthName "Tech:Server Secret Volcano Lair"
AuthType Basic
Require valid-user
-
- Require env AllowIP
</RequireAny>
</Directory>