Update Apache conf to fix Apache/PHP-FPM bug

This commit is contained in:
Alex Cabal 2021-07-27 13:27:11 -05:00
parent 2bd5a24f4d
commit 435605caf8
2 changed files with 6 additions and 0 deletions

View file

@ -127,6 +127,9 @@ Define domain standardebooks.org
# PHP-FPM configuration # PHP-FPM configuration
# See https://serverfault.com/questions/450628/apache-2-4-php-fpm-proxypassmatch/510784 # See https://serverfault.com/questions/450628/apache-2-4-php-fpm-proxypassmatch/510784
# Required for FPM to receive POST data sent with Transfer-Encoding: chunked
SetEnv proxy-sendcl 1
# Forward all PHP requests to the php-fpm pool for this domain. # Forward all PHP requests to the php-fpm pool for this domain.
<FilesMatch \.php$> <FilesMatch \.php$>
SetHandler "proxy:unix:/run/php/${domain}.sock|fcgi://${domain}" SetHandler "proxy:unix:/run/php/${domain}.sock|fcgi://${domain}"

View file

@ -126,6 +126,9 @@ Define domain standardebooks.test
# PHP-FPM configuration # PHP-FPM configuration
# See https://serverfault.com/questions/450628/apache-2-4-php-fpm-proxypassmatch/510784 # See https://serverfault.com/questions/450628/apache-2-4-php-fpm-proxypassmatch/510784
# Required for FPM to receive POST data sent with Transfer-Encoding: chunked
SetEnv proxy-sendcl 1
# Forward all PHP requests to the php-fpm pool for this domain. # Forward all PHP requests to the php-fpm pool for this domain.
<FilesMatch \.php$> <FilesMatch \.php$>
SetHandler "proxy:unix:/run/php/${domain}.sock|fcgi://${domain}" SetHandler "proxy:unix:/run/php/${domain}.sock|fcgi://${domain}"