blob: 170b13593f18dfe0113080f254190a74e3e32e93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# OpenGnSys Web Console template configuration for Apache.
Alias /opengnsys CONSOLEDIR
RewriteEngine On
# Overrides default CentOS php.ini configuration.
php_value short_open_tag on
# Redirect HTTP to HTTPS and default configuration.
<Directory CONSOLEDIR>
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R]
Options -Indexes FollowSymLinks
DirectoryIndex index.php
AddType octet/stream .pkg
</Directory>
# Redirect HTTP to HTTPS and RESTful configuration.
<Directory CONSOLEDIR/rest>
RewriteBase /opengnsys/rest/
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
</Directory>
|