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******.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 前面的注释#

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值