aboutsummaryrefslogtreecommitdiff
path: root/apache/sites/nowayforward_human.conf.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'apache/sites/nowayforward_human.conf.tpl')
-rw-r--r--apache/sites/nowayforward_human.conf.tpl15
1 files changed, 13 insertions, 2 deletions
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}"
<FilesMatch \.php$>
- SetHandler "proxy:unix:${PHP_FPM_SOCKET}|fcgi://localhost/"
+ <If "'${PHP_FPM_SOCKET}' != ''">
+ SetHandler "proxy:unix:${PHP_FPM_SOCKET}|fcgi://localhost/"
+ </If>
</FilesMatch>
+ # 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
</VirtualHost>