首页 后台正文

安全SSL配置域名https(Apache)

yuange 后台 2019-01-27 862 0 SSL
  1. php扩展启动opensl

  2. 配置apache的vhosts.conf:

<VirtualHost ip:80>  

DocumentRoot "D:\phpStudy\PHPTutorial\WWW\xxx"

ServerName 域名

</VirtualHost>

Listen 443

<VirtualHost ip:443>

    DocumentRoot "D:\phpStudy\PHPTutorial\WWW\xxx"

    ServerName 域名

    ServerAlias  域名

  <Directory "D:\phpStudy\PHPTutorial\WWW\xxx">

      Options FollowSymLinks ExecCGI

      AllowOverride All

      Order allow,deny

      Allow from all

      Require all granted

  </Directory>

  SSLEngine on

  SSLCertificateFile "D:\phpStudy\PHPTutorial\Apache\conf\ssl\xxx_public.crt"

  SSLCertificateKeyFile "D:\phpStudy\PHPTutorial\Apache\conf\ssl\xxx.key"

  SSLCertificateChainFile "D:\phpStudy\PHPTutorial\Apache\conf\ssl\xxx_chain.crt"

</VirtualHost>


评论

在线客服-可直接交谈

您好!有什么需要可以为您服务吗?