summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2017-09-25 12:24:18 +0000
committerramon <ramongomez@us.es>2017-09-25 12:24:18 +0000
commit21e2ab82cea1c220b1bf92e6758f5a6526df9578 (patch)
tree878a3088b5352691effb8d9e84e913c633561cf5 /server
parentff1129ba7a0d411f2a3d18caf02ae85d0303313e (diff)
#718: Configuración para obtener la cabecera de autentificación de la API REST.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5433 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'server')
-rw-r--r--server/etc/apache.conf.tmpl1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/etc/apache.conf.tmpl b/server/etc/apache.conf.tmpl
index 9ce9a115..5ecd996e 100644
--- a/server/etc/apache.conf.tmpl
+++ b/server/etc/apache.conf.tmpl
@@ -22,6 +22,7 @@ RewriteEngine On
# Redirect HTTP to HTTPS and RESTful configuration.
<Directory CONSOLEDIR/rest>
RewriteBase /opengnsys/rest/
+ RewriteRule .? - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R]
RewriteCond %{REQUEST_FILENAME} !-f