首页 → 服务器应用
背景:
阅读新闻
在 CentOS 6.2 的 Apache Web server 上安装 mod_spdy
[日期:2012-05-05] 来源:bitbi.biz 作者:Linux [字体:]
SPDY (Speedy) 是一个实验性的 web 协议 . 她的终极目标是降低 web 页面载入延时. mod_spdy 是 Apache HTTPD 的 插件. 当你使用浏览器(启用SPDY,如chrome)加载 https 页面时,这个插件可以快速的加载并且更有效的使用你的网络带宽.下面是她的安装使用方法:
安装 Apache Web 服务器,mod_ssl 和 openssl:
yum install httpd mod_ssl openssl
生成私钥:
openssl genrsa -out ca.key 1024
生成 CSR 文件:
openssl req -new -key ca.key -out ca.csr
生成 crt 文件:
openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt
复制文件到正确的地方:
cp ca.crt /etc/pki/tls/certs cp ca.key /etc/pki/tls/private/ca.key cp ca.csr /etc/pki/tls/private/ca.csr
应用 SELinux context:
restorecon -RvF /etc/pki
编辑 ssl.conf :
vi +/SSLCertificateFile /etc/httpd/conf.d/ssl.conf
下载合适版本的 mod-spdy :
wget https://dl-ssl.google.com/dl/linux/direct/mod-spdy-beta_current_x86_64.rpm
安装 mod_spdy:
yum install --nogpgcheck mod-spdy-beta_current_x86_64.rpm
重启动 Apache webserver:
/etc/init.d/httpd restart
打开页面(使用chrome):
https://192.168.1.222
打开chrome的/net-internals:
chrome://net-internals/#spdy
Fedora 16上源码建立PyDev + Eclipse的OpenStack开发环境笔记
Linux下源码实现LAMP环境的搭建
相关资讯 CentOS安装教程
图片资讯
本文评论 查看全部评论 (0)
评论声明
最新资讯
本周热门
Linux公社简介 - 广告服务 - 网站地图 - 帮助信息 - 联系我们
本站(LinuxIDC)所刊载文章不代表同意其说法或描述,,仅为提供更多信息,也不构成任何建议。
Copyright © 2006-2011 Linux公社 All rights reserved 浙ICP备06018118号