我已经用 centos 6.5 上的 spdy 模块编译了 nginx 1.5.10,它运行没有问题,据我所知,spdy 显然没有被使用。
我在 nginx.conf 中的 listen 指令中添加了“spdy”选项并重新启动了服务器,但是各种 spdy 检查方法,例如可用的 firefox 插件和网站:https : //spdycheck.org/表明我的网站上没有使用 spdy。
nginx.conf 中的行是:
听 443 ssl spdy default_server;
我看到了这个帖子:如何通过 Nginx 设置 SPDY 协议?
并查看我是否需要更改 /etc/init.d/nginx 中的 DAEMON 或 PATH 行 - 但在我的版本中,这些行根本不存在。
nginx -V 的输出是:
nginx 版本:由 gcc 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) 构建的 nginx/1.5.10 启用 TLS SNI 支持配置参数:--prefix=/etc/nginx --sbin-path=/usr /sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx /access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx。锁定 --http-client-body-temp-path=/var/cache/nginx/client_temp --http-proxy-temp-path=/var/cache/nginx/proxy_temp --http-fastcgi-temp-path=/ var/cache/nginx/fastcgi_temp --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx -- group=nginx --with-http_ssl_module --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_dav_module --with-http_flv_module --with-http_mp4_module --with-http_gunzip_module --with-http_gzip_static_module -- with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-http_auth_request_module --with-mail --with-mail_ssl_module --with-file-aio --with-ipv6 --with-http_spdy_module --with-cc -opt='-O2 -g'
欢迎任何提示!