Php apache中的禁止错误
我在Windows7上安装了Apache/PHP。我无法访问/localhost/index.php或/localhost。我可以从localhost打开任何其他.php文件,或者如果index.php位于documentroot的任何子文件夹中,我也可以打开它 以下是httpd.conf中的相关行Php apache中的禁止错误,php,apache,Php,Apache,我在Windows7上安装了Apache/PHP。我无法访问/localhost/index.php或/localhost。我可以从localhost打开任何其他.php文件,或者如果index.php位于documentroot的任何子文件夹中,我也可以打开它 以下是httpd.conf中的相关行 DocumentRoot "C:/public_html" <Directory /> Options FollowSymLinks Indexes AllowOver
DocumentRoot "C:/public_html"
<Directory />
Options FollowSymLinks Indexes
AllowOverride all
Order allow,deny
Allow from all
</Directory>
<Directory "C:/public_html">
Options Indexes FollowSymLinks
AllowOverride all
Order allow,deny
Allow from all
</Directory>
<IfModule dir_module>
DirectoryIndex index.php index.html
</IfModule>
DocumentRoot“C:/public\u html”
选项跟随符号链接索引
允许超越所有
命令允许,拒绝
通融
选项索引跟随符号链接
允许超越所有
命令允许,拒绝
通融
DirectoryIndex.php index.html