blob: d637c2fe4379c16e8c3e401f8f80997253857485 (
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
26
27
28
29
30
31
32
|
# OpenGnsys Web Admin Console template configuration for Apache.
Alias /opengnsys CONSOLEDIR
# PHP-FPM configuration
<IfModule proxy_fcgi_module>
<FilesMatch ".+\.ph(p[3457]?|t|tml)$">
SetHandler "proxy:unix:SOCKFILE|fcgi://localhost"
</FilesMatch>
</IfModule>
RewriteEngine On
# Redirect HTTP to HTTPS and default configuration.
<Directory CONSOLEDIR>
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R]
Require all granted
Options -Indexes +FollowSymLinks
DirectoryIndex index.php
AddType octet/stream .pkg
</Directory>
# 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
RewriteRule ^ index.php [QSA,L]
</Directory>
|