Rev | Line | |
---|
[d7fe54a] | 1 | # OpenGnsys Web Console template configuration for Apache. |
---|
[f9e3393] | 2 | |
---|
| 3 | Alias /opengnsys CONSOLEDIR |
---|
| 4 | |
---|
[53419be] | 5 | RewriteEngine On |
---|
| 6 | |
---|
| 7 | # Redirect HTTP to HTTPS and default configuration. |
---|
[f9e3393] | 8 | <Directory CONSOLEDIR> |
---|
[53419be] | 9 | RewriteCond %{HTTPS} !=on |
---|
| 10 | RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R] |
---|
[f9e3393] | 11 | Options -Indexes FollowSymLinks |
---|
| 12 | DirectoryIndex index.php |
---|
[53419be] | 13 | AddType octet/stream .pkg |
---|
[f9e3393] | 14 | </Directory> |
---|
[53419be] | 15 | # Redirect HTTP to HTTPS and RESTful configuration. |
---|
[7829e4e] | 16 | <Directory CONSOLEDIR/rest> |
---|
[53419be] | 17 | RewriteBase /opengnsys/rest/ |
---|
| 18 | RewriteCond %{HTTPS} !=on |
---|
| 19 | RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R] |
---|
| 20 | RewriteCond %{REQUEST_FILENAME} !-f |
---|
| 21 | RewriteRule ^ index.php [QSA,L] |
---|
[7829e4e] | 22 | </Directory> |
---|
Note: See
TracBrowser
for help on using the repository browser.