add configurable fcgi module
This commit is contained in:
parent
665948931a
commit
16a586c0af
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 }}/"
|
||||
|
|
Loading…
Reference in a new issue