用以下脚本安装:
然后打开/usr/local/nginx/conf/nginx.conf
搜索HTTPS server,把下面的行全部取消注释,并为listen参数加上spdy,SSL证书可以填Apache的,或者自己创建。为了让Wireshark能截包,ssl_ciphers可以改成RSA。
启动:
sudo /usr/local/nginx/sbin/nginx
注:Apache使用的mod_spdy支持server push,nginx还不支持。
参考:
<a target="_blank" href="http://dev.meettea.com/show-110-1.html">http://dev.meettea.com/show-110-1.html</a>
<a target="_blank" href="http://nginx.org/en/docs/http/ngx_http_spdy_module.html">http://nginx.org/en/docs/http/ngx_http_spdy_module.html</a>
<a target="_blank" href="http://nginx.org/en/docs/configure.html">http://nginx.org/en/docs/configure.html</a>