Apache mod_fastcgi & HTTP/2 Inconsistencies
Posted: Thu May 14, 2026 2:36 pm
We were receiving below across our sites after enabling in Apache config:
After investigation we found incompatibility with HTTP/2 and produces random 411 errors on browsing. However, current version of MAMP Pro requires FastCGI remain enabled per config:
mod_fastcgi is now considered legacy. MAMP needs to move to new version which is + and so to allow disabling of fastcgi.
Short term solution is to disable http2_module in Apache config when using fastcgi.
Code: Select all
http2_module411 Error:
Length Required
A request of the requested method GET requires a valid Content-length.
Apache/2.4.66 (Unix) OpenSSL/1.1.Iw mod_wsgil5.0.2 Python/3.14 mod_fastci/mod_fastgi-
After investigation we found
Code: Select all
mod_fastcgiCode: Select all
# modules that SHOULD be always ON
LoadModule fastcgi_module modules/mod_fastcgi.soCode: Select all
http2_moduleCode: Select all
proxy_fcgi_moduleShort term solution is to disable http2_module in Apache config when using fastcgi.