Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ssl/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Apache 2.4(Windows 7)上配置SSL?_Apache_Ssl_Windows 7 - Fatal编程技术网

如何在Apache 2.4(Windows 7)上配置SSL?

如何在Apache 2.4(Windows 7)上配置SSL?,apache,ssl,windows-7,Apache,Ssl,Windows 7,我正在尝试在我的pc(Windows 7)上安装和配置Apache 2.4 我还需要PHP和SSL http和php都可以正常工作,但https有一些问题 我在网上搜索了一些教程,找到了以下教程: 在我的httpd-vhosts.conf文件中,我创建了两个虚拟主机定义 <VirtualHost *:80> ServerAdmin webmaster@dummy-host.example.com DocumentRoot "D:/Cesare/Personale/Docume

我正在尝试在我的pc(Windows 7)上安装和配置Apache 2.4

我还需要PHP和SSL

http和php都可以正常工作,但https有一些问题

我在网上搜索了一些教程,找到了以下教程:

在我的httpd-vhosts.conf文件中,我创建了两个虚拟主机定义

<VirtualHost *:80>
  ServerAdmin webmaster@dummy-host.example.com
  DocumentRoot "D:/Cesare/Personale/DocumentRootApache"
  ServerName localhost
  ServerAlias localhost
  ErrorLog "logs/localhost.com-error.log"
  CustomLog "logs/localhost-access.log" common    
  <Directory "D:/Cesare/Personale/DocumentRootApache">
   Options Indexes FollowSymLinks
   AllowOverride All
   Require all granted
  </Directory>    
</VirtualHost>
答案是

Forbidden

You don't have permission to access /index.html on this server.
有什么建议吗?如果需要,我可以提供有关apache配置的其他信息


提前感谢

由于权限而不是SSL/TLS错误,您无法获取该文件,这表明这不是HTTPS设置错误

我建议您需要添加以下内容:

Require all granted
到您的443 vhost的目录配置,以允许访问此目录。你的80号主机上有这个

Forbidden

You don't have permission to access /index.html on this server.
Require all granted