From 6b22f15ab8580c3bc6d3fb7eec2db836596cd4c6 Mon Sep 17 00:00:00 2001 From: ramon Date: Mon, 7 Sep 2015 07:25:57 +0000 Subject: #708: ConfiguraciĆ³n de Apache para API REST sin usar fichero {{{.htacces}}} para mejorar la seguridad. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://opengnsys.es/svn/branches/version1.1@4671 a21b9725-9963-47de-94b9-378ad31fedc9 --- server/etc/apache.conf.tmpl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'server/etc') 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 + +# RESTful configuration. - AllowOverride All + RewriteEngine On + RewriteBase /opengnsys/rest/ + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [QSA,L] -- cgit v1.2.3-18-g5258