debian 下的 apache2 + ssl 配置方法
来源:互联网 发布:伦敦玛丽女王大学 知乎 编辑:程序博客网 时间:2024/06/03 15:56
由高人[google:debian apache2-ssl]指点,经过尝试,于昨晚23:58完成,请指正。
由高人[google:debian apache2-ssl]指点,经过尝试,于昨晚23:58完成,请指正。
Apach2 + ssl Step by Step
-------------------------------------------------
daizhong@gmail.com
20041114 23:35
------------------------------------------------
1 apt-get install apache2-mpm-worker
2 cd /etc/apache2/mods-enabled
ln -s /etc/apache2/mods-available/ssl.* .
3 cd /etc/apache2/sites-available
cp default ssl
cd /etc/apache2/sites-enabled
ln -s /etc/apache2/sites-available/ssl .
Then, modify ssl by the /usr/share/apache2/config/default-443,
paste the follow lines into /etc/apache2/sites-available/ssl:
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem
#xxx.xxx.com-ssl.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.pem
#xxx.xxx.com-ssl.key
BrowserMatch "MSIE [1-4]" nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [5-9]" ssl-unclean-shutdown
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
-- If you have several VHOSTS, you can use seperate Sa file as
xxx.xxx.com-ssl.key, etc
4 modify the 2 files:
/etc/apache2/ports.conf -- append "Listen 443"
/etc/apache2/sites-enabled/ssl -- the top 2 lines change to:
NameVirtualHost *:443
<VirtualHost *:443>
5 run apache2-ssl-certification, create the Sa file:
/etc/apache2/ssl/apache.pem
6 /etc/init.d/apache2 restart
1.apt-get install apache2。
2.cd /etc/apache2/mods-enabled mods-enabled 已经被include进 apache2.conf,想要添加什么模块,
只需要在mods-availablede/里面的添加相应模块(*.load)和模块的简单配置(*.conf)。
3.ln -s /etc/apache2/mods-available/ssl.* . 创建SSL的模块和简单配置信息。
4.在sites-available 创建https要访问的信息。为了方便创建我们可以cp default ssl.然后修改ssl,
首先要修改ssl的端口
NameVirtualHost *:443
<VirtualHost *:443>
然后添加SSL的认证信息,这应该是最简单的配置了,详细的,我还没有去仔细了解。
SSLCertificateFile /etc/apache2/ssl/apache.pem
#xxx.xxx.com-ssl.crt
SSLCertificateKeyFile /etc/apache2/ssl/apache.pem
#xxx.xxx.com-ssl.key
BrowserMatch "MSIE [1-4]" nokeepalive ssl-unclean-shutdown
#downgrade-1.0 force-response-1.0 //这些不能运行这些命令,所以,我注销了。
#BrowserMatch "MSIE [5-9]" ssl-unclean-shutdown
#SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
#-- If you have several VHOSTS, you can use seperate Sa file as
#xxx.xxx.com-ssl.key, etc
具体的配置情况可以参看/usr/share/apache2/config/default-443.可以根据其修改。里面具体的参数信息,我还没有去了解。知道的兄弟也请告诉一声
5。产生认证文件,由于我们在上面的配置文件中,确定认证文件在/etc/apache2/ssl/apache.pem,所以,我们去ssl下面运行apache2-ssl-
cdrtification.依据提示,产生认证文件。
6. 打开443端口 在port.conf里添加 Listen 443
7.最后,重新启动 apache2ctl restart
- debian 下的 apache2 + ssl 配置方法
- Debian 下配置 apache2 的 SSL
- Apache2下配置SSL
- apache2.2下配置SSL 的过程
- mac下的apache2配置ssl
- linux debian系统配置apache2的SSL证书
- apache2.2下ssl配置
- Ubuntu下apache2配置SSL
- Debian Linux 下 VPS 的 Apache2 配置 和 SS搭建
- 在debian下为apache2配置fcgi
- Debian下配置APACHE2+MYSQL5+PHP5
- Debian环境下apache2配置mod_perl
- Apache2+ssl 的设定方法
- Windows下配置Apache2.X+SSL心得
- Windows下配置Apache2.X+SSL心得
- Ubuntu下为Apache2配置SSL
- Debian下配置网络的方法
- Debian 7.8 下配置网络的方法
- 复习java:从最简单的小程序开始
- Prototype入门学习
- 通过Hibernate API操纵数据库
- 望2007
- [转贴]LINUX新手入门及安装配置FAQv
- debian 下的 apache2 + ssl 配置方法
- C/C++动态内存管理(1)
- 怎么从vector里删除元素
- ant 入门
- 写给即将步入大学,主修计算机专业的青年们的一封信[转自Gmail博客]
- 用ASP对文件夹操作
- 值得收藏的一些ASP代码
- 考考你的眼力 又一张神奇的图片
- 写给即将步入大学,主修计算机专业的青年们的一封信[转自Gmail博客]