Apache mod_fastcgi & HTTP/2 Inconsistencies

All MAMP discussions around troubleshooting and anything related to MAMP. Be as detailed as possible here when posting an issue.
Post Reply
mampsupportmod
Site Admin
Posts: 172
Joined: Wed Jan 20, 2021 3:06 am

Apache mod_fastcgi & HTTP/2 Inconsistencies

Post by mampsupportmod »

We were receiving below across our sites after enabling

Code: Select all

http2_module
in Apache config:
411 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-

411 Length Required


After investigation we found

Code: Select all

mod_fastcgi
incompatibility with HTTP/2 and produces random 411 errors on browsing. However, current version of MAMP Pro requires FastCGI remain enabled per config:

Code: Select all

# modules that SHOULD be always ON
LoadModule fastcgi_module modules/mod_fastcgi.so
mod_fastcgi is now considered legacy. MAMP needs to move to new version which is

Code: Select all

http2_module
+

Code: Select all

proxy_fcgi_module
and so to allow disabling of fastcgi.


Short term solution is to disable http2_module in Apache config when using fastcgi.
MAMP Support Forums is an unofficial support forum covering MAMP & MAMP Pro solution stacks.
Post Reply