apache2.4 You don‘t have permission to access / on this server.
在配置完apache2.4
conf/extra/httpd-vhosts.conf 添加完虚拟主机后以及
本地windows/system32/drivers/etc/host.conf 进行域名解析后
去到Apache
conf/httpd.conf
大概是231行的位置
修改
<Directory />
AllowOverride none
Require all no
</Directory>
为
<Directory “代码目录”>
Options Indexes FollowSymlinks
AllowOverride All
Require all granted
</Directory>
原文地址:http://blog.51cto.com/13757802/2138878
时间: 2024-11-05 03:55:57