summaryrefslogtreecommitdiffstats
path: root/server/etc/apache.conf.tmpl
blob: 8c978fd3601449130072f72f0af43c6a504ca77b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# OpenGnsys Web Admin Console template configuration for Apache.

Alias /opengnsys CONSOLEDIR

# Overrides default CentOS php.ini configuration.
php_value short_open_tag on

<Directory CONSOLEDIR>
	Require all granted
	Options -Indexes +FollowSymLinks
	DirectoryIndex index.php
</Directory>

# RESTful configuration.
<Directory CONSOLEDIR/rest>
	RewriteEngine On
	RewriteBase /opengnsys/rest/
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteRule ^ index.php [QSA,L]
</Directory>