HTTP/2, the successor to SPDY is finally gaining traction on both browsers and web servers. For my own benefit (and hopefully yours), I’ll be documenting relevant articles and information here.
NGINX
HTTP/2 is supported on NGINX as of version 1.9.5. To get it working on my dev environment, I followed the instructions on a couple of different sites (listed below), but needed to run both “brew update
”, and then “brew reinstall --devel --with-spdy nginx
”. When I tried to just install NGINX using the “--devel
” command, I was greeted by a message stating that 1.8.0 was already installed.
Apache
HTTP/2 support is now available in Apache httpd 2.4.17. A great write-up is available at mod_h[ttp]2: how to h2 in apache.
Gotchas
Even though SSL is not enforced in the RFC, all browsers that support HTTP/2 require it. So if you plan on going down the HTTP/2 route, be sure that SSL is an option, or already enabled on your site/app.
Helpful Links
- HTTP/2: the Pros, the Cons, and What You Need to Know - October 23, 2015
- Load Impact’s HTTP/1 vs HTTP/2 test
- Setup nginx with HTTP/2 for local development OS X - September 25, 2015
- Enable HTTP/2 in Nginx - September 22, 2015
- HTTP/2 Now Fully Supported in NGINX Plus - September 18, 2015
- HTTPS Everywhere With Nginx, Varnish And Apache - September 17, 2015
- Installing nginx on OS X Yosemite - December 17, 2014