学习php时,能借助apache访问*.php,但访问不了文件夹
学习php时,能借助apache访问*.php,但访问不了文件夹,比如访问localhost,就会显示如下信息:
Forbidden
You don't have permission to access / on this server.
Apache/2.0.59 (Win32) PHP/5.1.6 Server at localhost Port 80
但访问localhost/test.php就可以,在网上也查了别人的解决办法
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
这里改成
<Directory />
Options Indexes FollowSymLinks
AllowOverride None
</Directory>
按照上面改了后,问题还是没解决,
------解决方案--------------------加上下面两句:
Order allow,deny
Allow from all
------解决方案--------------------