diff options
author | ramon <ramongomez@us.es> | 2015-09-07 07:25:57 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2015-09-07 07:25:57 +0000 |
commit | 6b22f15ab8580c3bc6d3fb7eec2db836596cd4c6 (patch) | |
tree | e33b4ede0c86372010825246833ba9862c39e000 | |
parent | 965ac11d950c0ded527bdd824a7ae2ebd3ab6d63 (diff) |
#708: ConfiguraciĆ³n de Apache para API REST sin usar fichero {{{.htacces}}} para mejorar la seguridad.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4671 a21b9725-9963-47de-94b9-378ad31fedc9
-rw-r--r-- | admin/WebConsole/rest/.htaccess | 5 | ||||
-rw-r--r-- | server/etc/apache.conf.tmpl | 9 |
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> |