Apache配置https

在C:\phpStudy\Apache\conf 新建 vhostssl.conf

—————–添加内容——————–

Listen 443

<VirtualHost *:443>

DocumentRoot “C:\phpStudy\WWW”

ServerName 域名

ServerAlias 域名

SSLEngine on

SSLProtocol TLSv1 TLSv1.1 TLSv1.2

SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5

SSLCertificateFile “C:\phpStudy\Apache\cert\*.top_public.crt”

SSLCertificateKeyFile “C:\phpStudy\Apache\cert\*.top.key”

SSLCertificateChainFile “C:\phpStudy\Apache\cert\*.top_chain.crt”

<Directory “C:\phpStudy\WWW”>

Options +Indexes +FollowSymLinks +ExecCGI

AllowOverride All

Order allow,deny

Allow from all

Require all granted

</Directory>

</VirtualHost>