add configurable fcgi module

This commit is contained in:
Simon Vieille 2020-12-05 13:13:33 +01:00
parent 665948931a
commit 16a586c0af
Signed by: deblan
GPG Key ID: 03383D15A1D31745
3 changed files with 4 additions and 1 deletions

View File

@ -88,6 +88,7 @@ export DOCUMENT_ROOT
export SYSTEM_USER_USERNAME
export SYSTEM_USER_GROUP
export PHP_ENABLED
export MOD_FCGI
export PHP_VERSION
export WEB_HTTP
export WEB_HTTPS

View File

@ -33,6 +33,8 @@ APACHE_VHOST_SITES_ENABLED_PATH=/etc/apache2/sites-enabled
# The path of the php binary
PHP_BIN=/usr/bin/php7.4
MOD_FCGI=mod_fastcgi.c # mod_fcgid.c
# Available PHP versions
# It's possible to add or remove a version
# using the same logic

View File

@ -22,7 +22,7 @@
</Directory>
{% if PHP_ENABLED == "yes" %}
<IfModule mod_fastcgi.c>
<IfModule {{ MOD_FCGI }}>
<FilesMatch "\.php$">
ProxyErrorOverride on
SetHandler "proxy:fcgi://127.0.0.1:{{ PHP_FPM_PORT }}/"