From 435605caf8425fabceee08c28a615ae8b804c7a8 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Tue, 27 Jul 2021 13:27:11 -0500 Subject: [PATCH] Update Apache conf to fix Apache/PHP-FPM bug --- config/apache/standardebooks.org.conf | 3 +++ config/apache/standardebooks.test.conf | 3 +++ 2 files changed, 6 insertions(+) diff --git a/config/apache/standardebooks.org.conf b/config/apache/standardebooks.org.conf index 83fbcf66..57ac6af4 100644 --- a/config/apache/standardebooks.org.conf +++ b/config/apache/standardebooks.org.conf @@ -127,6 +127,9 @@ Define domain standardebooks.org # PHP-FPM configuration # 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. SetHandler "proxy:unix:/run/php/${domain}.sock|fcgi://${domain}" diff --git a/config/apache/standardebooks.test.conf b/config/apache/standardebooks.test.conf index 176d1ecb..f6eda97b 100644 --- a/config/apache/standardebooks.test.conf +++ b/config/apache/standardebooks.test.conf @@ -126,6 +126,9 @@ Define domain standardebooks.test # PHP-FPM configuration # 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. SetHandler "proxy:unix:/run/php/${domain}.sock|fcgi://${domain}"