summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--admin/WebConsole/rest/.htaccess5
-rw-r--r--server/etc/apache.conf.tmpl9
2 files changed, 7 insertions, 7 deletions
diff --git a/admin/WebConsole/rest/.htaccess b/admin/WebConsole/rest/.htaccess
deleted file mode 100644
index dee08aa2..00000000
--- a/admin/WebConsole/rest/.htaccess
+++ /dev/null
@@ -1,5 +0,0 @@
-RewriteEngine On
-RewriteBase /opengnsys/rest/
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteRule ^ index.php [QSA,L]
-
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>