phpstudy本地apache配置https免费证书ssl

配置之前,请下载phpstudy提供本地域名免费证书,放置到指定的位置。百度网盘提取码:ku7c  ,下载地址:http://pan.baidu.com/s/1gzfXlIJJbKlJ6AupQugw7g

Listen 443
SSLStrictSNIVHostCheck off
SSLCipherSuite AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL
SSLProtocol all -SSLv2 -SSLv3

    DocumentRoot "E:\wwwdede\eyoucms"
    ServerName www.eyoucms.com
  
      Options FollowSymLinks ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
      Require all granted
  
SSLEngine on
SSLCertificateFile "E:\ProgramFiles\phpStudy2018\PHPTutorial\Apache\conf\ssl\serverone.crt"
SSLCertificateKeyFile "E:\ProgramFiles\phpStudy2018\PHPTutorial\Apache\conf\ssl\serverone.key"

配置完https之后,记得要开启443端口,以免被防火墙拦截,无法访问。

你可能感兴趣的:(PHP)