source:
server/etc/apache.conf.tmpl
@
363c760
Last change on this file since 363c760 was 41876cb, checked in by , 8 years ago | |
---|---|
|
|
File size: 732 bytes |
Rev | Line | |
---|---|---|
[6b22f15] | 1 | # OpenGnsys Web Admin Console template configuration for Apache. |
[30837bb] | 2 | |
3 | Alias /opengnsys CONSOLEDIR | |
4 | ||
[53419be] | 5 | RewriteEngine On |
6 | ||
7 | # Redirect HTTP to HTTPS and default configuration. | |
[30837bb] | 8 | <Directory CONSOLEDIR> |
[53419be] | 9 | RewriteCond %{HTTPS} !=on |
10 | RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R] | |
[f9e3393] | 11 | Require all granted |
12 | Options -Indexes +FollowSymLinks | |
13 | DirectoryIndex index.php | |
[53419be] | 14 | AddType octet/stream .pkg |
[30837bb] | 15 | </Directory> |
[6b22f15] | 16 | |
[53419be] | 17 | # Redirect HTTP to HTTPS and RESTful configuration. |
[7829e4e] | 18 | <Directory CONSOLEDIR/rest> |
[6b22f15] | 19 | RewriteBase /opengnsys/rest/ |
[21e2ab8] | 20 | RewriteRule .? - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] |
[53419be] | 21 | RewriteCond %{HTTPS} !=on |
22 | RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R] | |
[6b22f15] | 23 | RewriteCond %{REQUEST_FILENAME} !-f |
24 | RewriteRule ^ index.php [QSA,L] | |
[7829e4e] | 25 | </Directory> |
Note: See TracBrowser
for help on using the repository browser.