Listen 443
<VirtualHost *:443>
DocumentRoot "C:/phpstudy/WWW"
ServerName www.youdomain.cn
ServerAlias youdomain.cn
SSLEngine on
SSLProtocol TLSv1 TLSv1.1 TLSv1.2
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
SSLCertificateFile "C:/phpstudy/Apache/conf/2_www.youdomain.cn.crt"
SSLCertificateKeyFile "C:/phpstudy/Apache/conf/3_www.youdomain.cn.key"
SSLCertificateChainFile "C:/phpstudy/Apache/conf/1_root_bundle.crt"
<Directory "C:/phpstudy/WWW/>
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<VirtualHost *:443>
DocumentRoot "C:/phpstudy/WWW"
ServerName www.youdomain.cn
ServerAlias youdomain.cn
SSLEngine on
SSLProtocol TLSv1 TLSv1.1 TLSv1.2
SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5
SSLCertificateFile "C:/phpstudy/Apache/conf/2_www.youdomain.cn.crt"
SSLCertificateKeyFile "C:/phpstudy/Apache/conf/3_www.youdomain.cn.key"
SSLCertificateChainFile "C:/phpstudy/Apache/conf/1_root_bundle.crt"
<Directory "C:/phpstudy/WWW/>
Options FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
版权声明:本文为niejiangshuai原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。