我不是一个随便的人,我随便起来不是人 首页 | 搜索 | 相册 | 评论 | 链接 | 注册 | 登陆

Debian 4 apache2 install ssl

apt-get update
apt-get install apache2

apt-get install openssl
openssl req -new -x509 -days 3650 -nodes -out /etc/apache2/ssl/apache.pem -keyout /etc/apache2/ssl/apache.pem

a2enmod ssl
cp default ssl

NameVirtualHost *:443
<VirtualHost *:443>

SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem

a2ensite ssl
vi /etc/apache2/ports.conf
Listen 443

/etc/init.d/apache2 restart

« 上一篇 | 下一篇 »

发表评论

评论内容 (必填):