Apache提示You don’t have permission to access / on this server问题解决
在ubuntu14.04下的apache 2增加虚拟主机目录,访问出现You don't have permission to access / on this server 403错误。
解决办法:修改apache.conf文件,在
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
下面增加虚拟主机目录,并设置Require all granted允许访问请求。