mirror of
https://github.com/standardebooks/web.git
synced 2025-07-22 07:14:59 -04:00
Update Apache conf to fix Apache/PHP-FPM bug
This commit is contained in:
parent
2bd5a24f4d
commit
435605caf8
2 changed files with 6 additions and 0 deletions
|
@ -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}"
|
||||||
|
|
|
@ -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}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue