**用 nginx 如何启用 HTTP/2 支持?**
答:很简单,只需编译安装最新版 Nginx,并在配置中启用:
~~~
server {
listen 443 ssl http2 default_server;
ssl_certificate server.crt;
ssl_certificate_key server.key;
...
}
~~~
详见中文指南([Nginx HTTP2 的编译和配置](http://picasso250.github.io/2015/12/03/nignx-http2-cipher.html))。也可以看官方文章([NGINX Open Source 1.9.5 Released with HTTP/2 Support](https://www.nginx.com/blog/nginx-1-9-5/))。