Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP2 support in MAMP Pro

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.

like image 927
Marco Peters Avatar asked Nov 16 '16 16:11

Marco Peters


Video Answer


2 Answers

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).

like image 193
Barry Pollard Avatar answered Sep 18 '22 22:09

Barry Pollard


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.

like image 28
Sergei Iastrebov Avatar answered Sep 17 '22 22:09

Sergei Iastrebov