HTTP2 support in MAMP Pro

Is there a way to enable HTTP2 support in MAMP Pro? I want to test and improve some of my on-premises development sites with HTTP2 support.

I searched for a while, but did not find a single solution.

+6
source share
1 answer

If you use Nginx, you can simply add the following code to the server block or http block (for global) in nginx.conf

add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"; 

Otherwise, if you can do Apache above, then open the Nginx configuration and enable "Use Nginx as the Apache reverse proxy"

0
source

Source: https://habr.com/ru/post/1012378/


All Articles