Is there any way to enable HTTP2 support in MAMP Pro? I want to test and improve some of my local development websites with HTTP2 support.
I've been searching for a while now, but haven't found a single solution.
As Tarun has stated the versions of Apache and Nginx included in MAMP pro do not support HTTP/2. Additionally HTTP/2 requires a modern version of OpenSSL (1.0.2) to support HTTP/2 on most browsers.
Your best options are therefore to change Apache and/or Nginx to support this. You can then copy the appropriate config to connect up to the rest of the MAMP stack (e.g. MySQL, PHP..etc.).
If you are on Windows then ApacheHaus and Apache Lounge offer up to date Apache versions with HTTP/2 support. Or if you prefer Nginx then can download these directly from Nginx.
If you are on MacOS then Homebrew allows you to install up to date versions of Apache and Nginx.
Alternatively you can use a Docker image if set up for that, or can compile from source (relatively simple for MacOS as very similar as for linux, but a good bit more complicated for Windows).
Recently I configured HTTP2 for NodeJS APP on MAMP Pro with NGINX. I wrote short article about it https://www.linkedin.com/pulse/nodejs-http2-server-mamp-pro-nginx-sergei-iastrebov/ I think it'll help you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With