aboutsummaryrefslogtreecommitdiff
path: root/apache
diff options
context:
space:
mode:
Diffstat (limited to 'apache')
-rw-r--r--apache/httpd.conf.tpl1
-rw-r--r--apache/sites/nowayforward_human.conf.tpl4
2 files changed, 5 insertions, 0 deletions
diff --git a/apache/httpd.conf.tpl b/apache/httpd.conf.tpl
index 3c87dab..950ff21 100644
--- a/apache/httpd.conf.tpl
+++ b/apache/httpd.conf.tpl
@@ -15,6 +15,7 @@ LoadModule unixd_module modules/mod_unixd.so
LoadModule mime_module modules/mod_mime.so
LoadModule alias_module modules/mod_alias.so
LoadModule env_module modules/mod_env.so
+LoadModule rewrite_module modules/mod_rewrite.so
#LoadModule log_config_module modules/mod_log_config.so
Define ROOT ${ROOT_DIR}
diff --git a/apache/sites/nowayforward_human.conf.tpl b/apache/sites/nowayforward_human.conf.tpl
index 46fa9c1..e94e13e 100644
--- a/apache/sites/nowayforward_human.conf.tpl
+++ b/apache/sites/nowayforward_human.conf.tpl
@@ -5,4 +5,8 @@
<FilesMatch \.php$>
SetHandler "proxy:unix:${PHP_FPM_SOCKET}|fcgi://localhost/"
</FilesMatch>
+
+ RedirectMatch "^/$" /home/index.php
+ RedirectMatch "^/index.html$" /home/index.php
+ RedirectMatch "^/index.php$" /home/index.php
</VirtualHost>