导致问题的虚拟主机声明(来源):
<VirtualHost *:80>
ServerAdmin admin@d7
DocumentRoot /vagrant/d7
ServerName www.d7.local
ServerAlias d7.local
RewriteEngine On
RewriteOptions inherit
<Directory /vagrant/d7>
Order allow,deny
Allow from all
</Directory>
<Directory /vagrant>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
错误日志:
[Mon Nov 04 12:23:11.947082 2013] [authz_core:error] [pid 2471] [client 10.0.2.2:58238] AH01630: client denied by server configuration: /vagrant/d7/
我不知道为什么这不起作用......
根据上述规则,我也禁止了 drupal 网站和 apache 欢迎页面 (index.html)
ls -ld /vagrant/d7
命令输出:
drwxrwxrwx 1 vagrant vagrant 8192 Nov 4 10:05 /vagrant/d7