summaryrefslogtreecommitdiffstats
path: root/server/etc
diff options
context:
space:
mode:
Diffstat (limited to 'server/etc')
-rw-r--r--server/etc/apache-prev2.4.conf.tmpl12
-rw-r--r--server/etc/apache.conf.tmpl5
2 files changed, 15 insertions, 2 deletions
diff --git a/server/etc/apache-prev2.4.conf.tmpl b/server/etc/apache-prev2.4.conf.tmpl
new file mode 100644
index 00000000..474ea62a
--- /dev/null
+++ b/server/etc/apache-prev2.4.conf.tmpl
@@ -0,0 +1,12 @@
+# OpenGnSys Web Console template configuration for Apache.
+
+Alias /opengnsys CONSOLEDIR
+
+# Overrides default CentOS php.ini configuration.
+php_value short_open_tag on
+
+<Directory CONSOLEDIR>
+ Options -Indexes FollowSymLinks
+ DirectoryIndex index.php
+</Directory>
+
diff --git a/server/etc/apache.conf.tmpl b/server/etc/apache.conf.tmpl
index 1bf6d2c6..5613bf11 100644
--- a/server/etc/apache.conf.tmpl
+++ b/server/etc/apache.conf.tmpl
@@ -6,7 +6,8 @@ Alias /opengnsys CONSOLEDIR
php_value short_open_tag on
<Directory CONSOLEDIR>
- Options -Indexes +FollowSymLinks
- DirectoryIndex index.php
+ Require all granted
+ Options -Indexes +FollowSymLinks
+ DirectoryIndex index.php
</Directory>