操作系统环境:ubuntu12.04桌面版
nginx的版本:1.4.1
编译:./configure --with-pcre=/home/hh/Downloads/pcre-8.33 --with-http_ssl_module --with-http_spdy_module --with-zlib=/home/hh/Downloads/zlib-1.2.8 --with-http_gzip_static_module --with-http_stub_status_module --prefix=/usr/local/nginx --with-openssl=/home/hh/Downloads/openssl-1.0.1e
其他相关软件:包括pcre、zlib、openssl-1.0.1e(必须是1.0.1以上)
安装完成后,配置nginx.conf,修改如下:
server {
listen 443 ssl spdy;
server_name localhost;
ssl_certificate server.crt;
ssl_certificate_key server.key;
ssl_session_timeout 5m;
ssl_protocols SSLv2 SSLv3 TLSv1;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
root html;
index index.html index.htm;
}
}、
修改后重启nginx就可以支持spdy了