summaryrefslogtreecommitdiffstats
path: root/server/etc/apache.conf.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'server/etc/apache.conf.tmpl')
-rw-r--r--server/etc/apache.conf.tmpl9
1 files changed, 7 insertions, 2 deletions
diff --git a/server/etc/apache.conf.tmpl b/server/etc/apache.conf.tmpl
index cd8e059d..8c978fd3 100644
--- a/server/etc/apache.conf.tmpl
+++ b/server/etc/apache.conf.tmpl
@@ -1,4 +1,4 @@
-# OpenGnSys Web Console template configuration for Apache.
+# OpenGnsys Web Admin Console template configuration for Apache.
Alias /opengnsys CONSOLEDIR
@@ -10,6 +10,11 @@ php_value short_open_tag on
Options -Indexes +FollowSymLinks
DirectoryIndex index.php
</Directory>
+
+# RESTful configuration.
<Directory CONSOLEDIR/rest>
- AllowOverride All
+ RewriteEngine On
+ RewriteBase /opengnsys/rest/
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteRule ^ index.php [QSA,L]
</Directory>