如何在Apache 2.4(Windows 7)上配置SSL?
我正在尝试在我的pc(Windows 7)上安装和配置Apache 2.4 我还需要PHP和SSL http和php都可以正常工作,但https有一些问题 我在网上搜索了一些教程,找到了以下教程: 在我的httpd-vhosts.conf文件中,我创建了两个虚拟主机定义如何在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
<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