vim $Apache_path/conf/httpd.conf #将以下两行的"#"注释去掉 #Include conf/extra/httpd-vhosts.conf #Include conf/extra/httpd-ssl.conf 修改后: Include conf/extra/httpd-vhosts.conf Include conf/extra/httpd-ssl.conf
配置虚拟主机文件
1 2 3
vim $Apache_path/conf/httpd-ssl.conf(修改证书文件存放目录) SSLCertificateFile "$Apache\_path/conf/ssl\_ca/server.crt"#证书需要事先准备好 SSLCertificateKeyFile "$Apache\_path/conf/ssl\_ca/server.key"