Browse Source

add configurable fcgi module

master
Simon Vieille 6 months ago
parent
commit
16a586c0af
Signed by: deblan GPG Key ID: 03383D15A1D31745
  1. 1
      bin/vhost-add
  2. 2
      etc/config.dist
  3. 2
      src/templates/vhost-http.twig

1
bin/vhost-add

@ -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

2
etc/config.dist

@ -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

2
src/templates/vhost-http.twig

@ -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…
Cancel
Save