1.确认DocumentRoot在路径内
<Directory />
#......
</Direcory>
2.确认DocumentRoot的所有父节点目录都至少所有人可读(或者www-data用户可读)
3.设置Directory或Location的配置,允许所有人可访问。apache2.2和2.4有所不同:
apache2.2:
<Location /foo>
Order allow,deny
Allow from all
</Location>
apache2.4:
<Location /foo>
Require all granted
</Location>