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.conf24
1 files changed, 16 insertions, 8 deletions
diff --git a/web/etc/apache2/nms.tg16.gathering.org.conf b/web/etc/apache2/nms.tg16.gathering.org.conf
index 1c1d7e3..08471e0 100644
--- a/web/etc/apache2/nms.tg16.gathering.org.conf
+++ b/web/etc/apache2/nms.tg16.gathering.org.conf
@@ -4,18 +4,29 @@
ServerAlias nms.tg16.gathering.org
DocumentRoot /srv/tgmanage/web/nms.gathering.org
- ScriptAlias /api/private/ /srv/tgmanage/web/nms.gathering.org/api/private/
+ ScriptAlias /api/write/ /srv/tgmanage/web/nms.gathering.org/api/write/
+ ScriptAlias /api/read/ /srv/tgmanage/web/nms.gathering.org/api/read/
ScriptAlias /api/public/ /srv/tgmanage/web/nms.gathering.org/api/public/
- <Directory "/srv/tgmanage/web/nms.gathering.org/api/private/">
+ <Directory "/srv/tgmanage/web/nms.gathering.org/api/write/">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
<RequireAny>
- AuthUserFile /srv/tgmanage/web/.htpasswd
+ AuthUserFile /srv/tgmanage/web/htpasswd-write
AuthName "Tech:Server Secret Volcano Lair"
AuthType Basic
Require valid-user
</RequireAny>
</Directory>
+ <Directory "/srv/tgmanage/web/nms.gathering.org/api/read/">
+ AllowOverride None
+ Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
+ <RequireAny>
+ AuthUserFile /srv/tgmanage/web/htpasswd-read
+ AuthName "The Gathering Network Management System"
+ AuthType Basic
+ Require valid-user
+ </RequireAny>
+ </Directory>
<Directory "/srv/tgmanage/web/nms.gathering.org/api/public/">
AllowOverride None
Options +ExecCGI -MultiViews +Indexes +SymLinksIfOwnerMatch
@@ -24,16 +35,13 @@
<Directory "/srv/tgmanage/web/nms.gathering.org">
AllowOverride None
Options Indexes FollowSymLinks MultiViews
-
AddDefaultCharset UTF-8
-
<RequireAny>
- AuthUserFile /srv/tgmanage/web/.htpasswd
- AuthName "Tech:Server Secret Volcano Lair"
+ AuthUserFile /srv/tgmanage/web/htpasswd-read
+ AuthName "The Gathering Network Management System"
AuthType Basic
Require valid-user
</RequireAny>
-
</Directory>
ErrorLog /var/log/apache2/error-nms.tg16.gathering.org.log