PHPStudy_ssl 的本地配置 ==> https

本文详细介绍了如何在本地环境中使用PHPStudy配置SSL证书,实现HTTPS访问。通过步骤指导,帮助开发者顺利将本地开发站点切换到安全的HTTPS协议。
摘要由CSDN通过智能技术生成
1、腾讯云配置域名:leitao.hfwst.com.cn
2、申请对应域名的ssl证书&下载 -> 移动到C:\phpStudy\PHPTutorial\Apache\conf\ssl中

3、开启apache的编译ssl模块,如图打开phpstudy—其它选项设置—PHP扩张及设置—php扩展—php-openssl前面打勾

4、打开修改httpd.conf配置文件,打开找到#LoadModule ssl_module modules/mod_ssl.so,去掉前面的注释符#,使得ssl模块生效。
增加一条引用语句   Include conf/vhostssl.conf

5、在Apache的conf文件夹中创建一个名为vhostssl.conf的配置文件。
编辑vhostsssl.conf文件,增加如下内容:
#################################
Listen 443
SSLStrictSNIVHostCheck off
SSLCipherSuite AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL
SSLProtocol all -SSLv2 -SSLv3
<VirtualHost *:443>
    DocumentRoot "C:\phpStudy\PHPTutorial\WWW\ouyangke\public"
    ServerName leitao.hfwst.com.cn
    ServerAlias hfwst.com.cn
  <Directory "C:\phpStudy\PHPTutorial\WWW\ouyangke\public">(
      Options FollowSymLinks ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
      Require all granted
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值