Website Summary Files Commits Branches @commit @diff @stats
path: root / apache
diff options
context:
space:
mode:
Commit065174271d5b521b3bab54d48bb1c91569f8e56f (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-01-19 18:25:14 +0200
Committer
 Syndamia <kamen@syndamia.com>
2025-01-19 18:25:14 +0200
Files56cceee8ff8bc803979a7c3965c9c1a4b3ea6cd5 /apache
nowayforward_human-065174271d5b521b3bab54d48bb1c91569f8e56f.tar
nowayforward_human-065174271d5b521b3bab54d48bb1c91569f8e56f.tar.gz
nowayforward_human-065174271d5b521b3bab54d48bb1c91569f8e56f.zip
Parentba71a5ed4750c660ba5c0aa4743b8e7fd44e1ec9 (diff)
feat: Implement the home page
2 files changed, 5 insertions, 0 deletions
-rw-r--r--apache/httpd.conf.tpl1
-rw-r--r--apache/sites/nowayforward_human.conf.tpl4
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>