Website Summary Files Commits Branches @commit @diff @stats
path: root / apache / sites
diff options
context:
space:
mode:
Commit0fb21de511257b5738d166c61e80fc6fb180b6a1 (patch)
Author
 Syndamia <kamen@syndamia.com>
2025-01-18 15:34:34 +0200
Committer
 Kamen Mladenov <kamen@syndamia.com>
2025-01-19 07:46:17 +0200
Filesc4dd0800fa63bb64995bbc5c5b84c317ddd4540a /apache/sites
nowayforward_human-0fb21de511257b5738d166c61e80fc6fb180b6a1.tar
nowayforward_human-0fb21de511257b5738d166c61e80fc6fb180b6a1.tar.gz
nowayforward_human-0fb21de511257b5738d166c61e80fc6fb180b6a1.zip
Parent1faf25dc6013211544212f186196a6039b2cef98 (diff)
feat: Add php to apache
1 files changed, 6 insertions, 1 deletions
-rw-r--r--apache/sites/nowayforward_human.conf.tpl7
diff --git a/apache/sites/nowayforward_human.conf.tpl b/apache/sites/nowayforward_human.conf.tpl
index 30ebe7e..34e5533 100644
--- a/apache/sites/nowayforward_human.conf.tpl
+++ b/apache/sites/nowayforward_human.conf.tpl
@@ -1,4 +1,9 @@
<VirtualHost *:8000>
ServerName localhost
- DocumentRoot ${REPOSITORY}/views
+ DocumentRoot "${REPOSITORY}/views"
+ Alias /controllers "${REPOSITORY}/controllers"
+
+ <FilesMatch \.php$>
+ SetHandler "proxy:unix:${PHP_FPM_SOCKET}|fcgi://localhost/"
+ </FilesMatch>
</VirtualHost>