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 /server | |
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
Diffstat (limited to 'server')
-rw-r--r-- | server/etc/apache.conf.tmpl | 9 |
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> |