Linux Mint + Nginx 1.5.11搭建SSL/HTTPS/SPDY服务器
来源:互联网 发布:慧讯软件电话 编辑:程序博客网 时间:2024/05/17 06:30
Apache搭建的SPDY服务器(Linux Mint + Apache2.2搭建SSL/HTTPS/SPDY服务器)很不爽,因为Apache只能用2.2版本,SPDY也只支持到3,不支持3.1。所以用Nginx好些。
用以下脚本安装:
sudo apt-get install openssl libssl-devwget http://nginx.org/download/nginx-1.5.11.tar.gztar zxvf nginx-1.5.11.tar.gzwget http://zlib.net/zlib-1.2.8.tar.gztar zxvf zlib-1.2.8.tar.gzcd nginx-1.5.11./configure --with-http_ssl_module --with-zlib=../zlib-1.2.8 --with-http_spdy_modulesudo make install
然后打开/usr/local/nginx/conf/nginx.conf
搜索HTTPS server,把下面的行全部取消注释,并为listen参数加上spdy,SSL证书可以填Apache的,或者自己创建。为了让Wireshark能截包,ssl_ciphers可以改成RSA。
# HTTPS server # server { listen 443 ssl spdy; server_name localhost; ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem; ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; #ssl_ciphers HIGH:!aNULL:!MD5; ssl_ciphers RSA; ssl_prefer_server_ciphers on; location / { root /home/liuhx/xtp/writable/www; index index.html index.htm; } }
sudo /usr/local/nginx/sbin/nginx
注:Apache使用的mod_spdy支持server push,nginx还不支持。
参考:
http://dev.meettea.com/show-110-1.html
http://nginx.org/en/docs/http/ngx_http_spdy_module.html
http://nginx.org/en/docs/configure.html
转载请注明出处:http://blog.csdn.net/hursing
0 0
- Linux Mint + Nginx 1.5.11搭建SSL/HTTPS/SPDY服务器
- Linux Mint + Apache2.2搭建SSL/HTTPS/SPDY服务器
- Nginx搭建HTTPS服务器
- nginx搭建https服务器
- Nginx 搭建 HTTPS 服务器
- nginx搭建https服务器
- nginx搭建https服务器
- Nginx搭建HTTPS服务器
- Nginx搭建https服务器
- nginx 搭建https服务器
- nginx搭建https服务器
- Apache搭建https服务器ssl
- https搭建:ubuntu nginx配置 SSL证书
- nginx安装SSL证书,搭建https网站
- https搭建:ubuntu nginx配置 SSL证书
- 使用nginx搭建https服务器
- 使用nginx搭建https服务器
- 使用nginx搭建https服务器
- Linux下查看文件和文件夹大小
- Linux Tomcat Https 访问配置!
- cygwin 批处理 运行 build_native.sh
- 关于 Unchecked cast from Iterator to Iterator String 提示
- ajax请求php页面中生成的session,无法在其他普通php页面使用
- Linux Mint + Nginx 1.5.11搭建SSL/HTTPS/SPDY服务器
- Java数字摘要 MD5
- Jquery Mobile + PhoneGap
- NodeJs学习篇
- SQL注入攻击[详解]
- 前台按钮样式
- Linux 下安装Boost
- 巧记口诀确定正方体表面展开图
- android Animations 动画效果(四)