Apache2.4 HTTPS SSL證書配置
一、首先將證書放到Apache24\conf文件夾下,如圖
cert證書文件

二、httpd.conf 文件配置
1.開啟ssl文件 去除#
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so
LoadModule ssl_module modules/mod_ssl.so

2.打開httpd-ssl.conf 去除#
Include conf/extra/httpd-ssl.conf

三、httpd-ssl.conf 文件配置
1.開啟443端口

2.VirtualHost 配置
項目文件目錄
DocumentRoot "c:/Apache24/www/exmailpro"
域名指向
ServerName smailweb.shnu.edu.cn:443
ServerAdmin
admin@smailweb.shnu.edu.cn
日志文件
ErrorLog "c:/Apache24/logs/error_mailssl.log"
TransferLog "c:/Apache24/logs/access_mailssl.log"

3.證書文件地址配置
SSLCertificateFile "c:/Apache24/conf/cert/server.crt"
SSLCertificateKeyFile "c:/Apache24/conf/cert/server.key"
