source: server/etc/apache.conf.tmpl @ 45cf7e5

918-git-images-111dconfigfileconfigure-oglivegit-imageslgromero-new-oglivemainmaint-cronmount-efivarfsmultivmmultivm-ogboot-installerogClonningEngineogboot-installer-jenkinsoglive-ipv6test-python-scriptsticket-301ticket-50ticket-50-oldticket-577ticket-585ticket-611ticket-612ticket-693ticket-700ubu24tplunification2use-local-agent-oglivevarios-instalacionwebconsole3
Last change on this file since 45cf7e5 was 21e2ab8, checked in by ramon <ramongomez@…>, 8 years ago

#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

  • Property mode set to 100644
File size: 846 bytes
RevLine 
[6b22f15]1# OpenGnsys Web Admin Console template configuration for Apache.
[30837bb]2
3Alias /opengnsys CONSOLEDIR
4
[53419be]5RewriteEngine On
6
[ea60f41]7# Overrides default CentOS php.ini configuration.
[f05f558]8<IfModule mod_php5.c>
9        php_value short_open_tag on
[d13a559]10</IfModule>
[ea60f41]11
[53419be]12# Redirect HTTP to HTTPS and default configuration.
[30837bb]13<Directory CONSOLEDIR>
[53419be]14        RewriteCond %{HTTPS} !=on
15        RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R]
[f9e3393]16        Require all granted
17        Options -Indexes +FollowSymLinks
18        DirectoryIndex index.php
[53419be]19        AddType octet/stream .pkg
[30837bb]20</Directory>
[6b22f15]21
[53419be]22# Redirect HTTP to HTTPS and RESTful configuration.
[7829e4e]23<Directory CONSOLEDIR/rest>
[6b22f15]24        RewriteBase /opengnsys/rest/
[21e2ab8]25        RewriteRule .? - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
[53419be]26        RewriteCond %{HTTPS} !=on
27        RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R]
[6b22f15]28        RewriteCond %{REQUEST_FILENAME} !-f
29        RewriteRule ^ index.php [QSA,L]
[7829e4e]30</Directory>
Note: See TracBrowser for help on using the repository browser.