码迷,mamicode.com
首页 > Web开发 > 详细

Apache配置https

时间:2020-01-15 23:27:41      阅读:167      评论:0      收藏:0      [点我收藏+]

标签:exec   directory   protocol   tls   php   engine   root   public   内容   

在C:\phpStudy\Apache\conf 新建 vhostssl.conf

-----------------添加内容--------------------

Listen 443

<VirtualHost *:443>

DocumentRoot "C:\phpStudy\WWW"

ServerName 域名

ServerAlias 域名

SSLEngine on

SSLProtocol TLSv1 TLSv1.1 TLSv1.2

SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5

SSLCertificateFile "C:\phpStudy\Apache\cert\*.top_public.crt"

SSLCertificateKeyFile "C:\phpStudy\Apache\cert\*.top.key"

SSLCertificateChainFile "C:\phpStudy\Apache\cert\*.top_chain.crt"

<Directory "C:\phpStudy\WWW">

Options +Indexes +FollowSymLinks +ExecCGI

AllowOverride All

Order allow,deny

Allow from all

Require all granted

</Directory>

</VirtualHost>

Apache配置https

标签:exec   directory   protocol   tls   php   engine   root   public   内容   

原文地址:https://www.cnblogs.com/xingxingye/p/12199032.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!