欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

phpstudy 2016搭建https

程序员文章站 2022-05-01 09:38:11
...

1.勾选php_openssl

phpstudy 2016搭建https

2.打开vhosts.conf文件,添加以下代码

phpstudy 2016搭建https

Listen 443

<VirtualHost *:443>

    DocumentRoot "C:\phpStudy\WWW"

    ServerName www.myxxxxxxx.xyz

    ServerAlias myxxxxxxx.xyz     

    SSLEngine on

    SSLProtocol TLSv1 TLSv1.1 TLSv1.2

    SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5

    SSLCertificateFile "C:\phpStudy\Apache\conf\ssl\2_www.myxxxxxxx.xyz.crt"  

    SSLCertificateKeyFile "C:\phpStudy\Apache\conf\ssl\3_www.myxxxxxxx.xyz.key" 

    SSLCertificateChainFile "C:\phpStudy\Apache\conf\ssl\1_root_bundle.crt" 

  <Directory "C:\phpStudy\WWW">

      Options +Indexes +FollowSymLinks +ExecCGI

      AllowOverride All

      Order allow,deny

      Allow from all

      Require all granted

  </Directory>

</VirtualHost>

phpstudy 2016搭建https

3. 最后重启php

相关标签: 服务器