From 02995bfe9827c0c329c9c397411d83bd6918d096 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 1 Feb 2025 17:06:10 +0200 Subject: feat: Add XAMPP setup --- apache/sites/nowayforward_human.conf.tpl | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'apache/sites') diff --git a/apache/sites/nowayforward_human.conf.tpl b/apache/sites/nowayforward_human.conf.tpl index 2a5f58f..637ee4f 100644 --- a/apache/sites/nowayforward_human.conf.tpl +++ b/apache/sites/nowayforward_human.conf.tpl @@ -4,9 +4,21 @@ Alias /archives "${ARCHIVES_DIR}" - SetHandler "proxy:unix:${PHP_FPM_SOCKET}|fcgi://localhost/" + + SetHandler "proxy:unix:${PHP_FPM_SOCKET}|fcgi://localhost/" + + # Database + SetEnv SERVER ${SERVER} + SetEnv PORT ${PORT} + SetEnv USER ${USER} + SetEnv PASSWORD ${PASSWORD} + SetEnv MYSQL_UNIX_SOCKET ${MYSQL_UNIX_SOCKET} + + # Project + SetEnv ARCHIVES_DIR ${ARCHIVES_DIR} + RewriteEngine On RewriteCond %{HTTP:Authorization} ^(.*) @@ -14,6 +26,5 @@ RewriteCond %{REQUEST_URI} !/archives.* RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f - RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /global/router.php -- cgit v1.2.3