aboutsummaryrefslogtreecommitdiffstats
path: root/web/etc
diff options
context:
space:
mode:
authorKristian Lyngstol <kly@kly@.no>2016-03-22 13:18:52 +0100
committerKristian Lyngstol <kly@kly@.no>2016-03-22 13:18:52 +0100
commite3a11ccb7f67d036c1556f51efc509ee8038ca8a (patch)
treedf5786c1577e89510da5f06bdf4b0b2003c2bd7f /web/etc
parenta8f122dfef27846895805df4db0fd1efb2f715ee (diff)
NMS: Implement read/write separation in frontend
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