source:
server/etc/apache.conf.tmpl
@
449ff6d
Last change on this file since 449ff6d was 53419be, checked in by , 8 years ago | |
---|---|
|
|
File size: 748 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. |
8 | php_value short_open_tag on | |
9 | ||
[53419be] | 10 | # Redirect HTTP to HTTPS and default configuration. |
[30837bb] | 11 | <Directory CONSOLEDIR> |
[53419be] | 12 | RewriteCond %{HTTPS} !=on |
13 | RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R] | |
[f9e3393] | 14 | Require all granted |
15 | Options -Indexes +FollowSymLinks | |
16 | DirectoryIndex index.php | |
[53419be] | 17 | AddType octet/stream .pkg |
[30837bb] | 18 | </Directory> |
[6b22f15] | 19 | |
[53419be] | 20 | # Redirect HTTP to HTTPS and RESTful configuration. |
[7829e4e] | 21 | <Directory CONSOLEDIR/rest> |
[6b22f15] | 22 | RewriteBase /opengnsys/rest/ |
[53419be] | 23 | RewriteCond %{HTTPS} !=on |
24 | RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R] | |
[6b22f15] | 25 | RewriteCond %{REQUEST_FILENAME} !-f |
26 | RewriteRule ^ index.php [QSA,L] | |
[7829e4e] | 27 | </Directory> |
Note: See TracBrowser
for help on using the repository browser.