读书人

apache虚拟目录建立后网页禁止访问

发布时间: 2012-12-30 10:43:15 作者: rapoo

apache虚拟目录建立后网页禁止访问,求高手指教
添加虚拟目录:

Alias /report/ "/www/htdocs/test/"

<Directory "/www/htdocs/test/">
Options Indexes MultiViews
AllowOverride None
Order deny,allow
Allow from all
DirectoryIndex index.php
</Directory>

访问http://localhost/test/index.php提示You don't have permission to access /report/index.php on this server.

[解决办法]
首先检查目录文件权限问题,然后Options 加上FollowSymLinks

读书人网 >Apache

热点推荐