source:
server/etc/apache.conf.tmpl
@
45cf7e5
Last change on this file since 45cf7e5 was 21e2ab8, checked in by , 8 years ago | |
---|---|
|
|
File size: 846 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 | ||
[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.