apache 设置 ssl
启用SSL
a2enmod ssl
生成证书
openssl req -new -x509 -days 365 -nodes -out /etc/apache2/apache.pem -keyout /etc/apache2/apache.pem
然后在要启用SSL的虚拟主机中设置端口为443等
<VirtualHost your.domain.com:443>
SSLEngine On
SSLCertificateFile /etc/apache2/ssl/apache.pem
</VirturlHost>