Windows Apache配置https----phpstudy集成
1、开启PHP扩展OpenSSL,在其他选项菜单中,PHP扩展及设置->PHP扩展
2、在conf文件夹中创建vhostssl.conf配置文件,在Include conf/vhosts.conf后面加上
Include conf/vhostssl.conf
3、加入以下代码,端口号可以自定义,默认为443
Listen 443
<VirtualHost *:443>
DocumentRoot “F:\www”
ServerName xxxxxx
ServerAlias xxxxxx
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUMFiles\phpStudy\Apache\cert\2438410_wzcs.wzsjj.cn_chain.pem"
SSLCertificateFile “D:\phpStudy\Apache\cert\xxxxxx.crt” #证书文件
SSLCertificateKeyFile “D:\phpStudy\Apache\cert\xxxxxx.key” #证书文件
SSLCertificateChainFile “D:\phpStudy\Apache\cert\xxxxxx.crt” #证书文件
<Directory “F:\www”>
#Options +Indexes +FollowSymLinks +ExecCGI #这一行需要注释掉
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Require all granted
4、这几个对应的前面的#去掉
去掉 #LoadModule headers_module modules/mod_headers.so 前面的注释#
去掉 #LoadModule deflate_module modules/mod_deflate.so 前面的注释#
去掉 #LoadModule filter_module modules/mod_filter.so 前面的注释#