提示You don't have permission to access / on this serverphp
搜索了一下,获得的结果基本上,以下设置:web
1
2
3
|
AllowOverride all
Order allow,deny
Allow from all
|
但怎么设置依然仍是提示You don't have permission to access / on this server.apache
将 Require local 换成 Require all granted便可
ide
新安装的wampserver,进到localhost以后,点击本身的web目录xxx时候,会自动跳转到http://xxx,由于没有在apache的www目录中,因此不能进行显示,须要手动输入http://localhost/xxx才能够。要怎么配置呢,修改www目录中的index.php文件,以下的代码块 ui
while (($file = readdir($handle))!==false) { if (is_dir($file) && !in_array($file,$projectsListIgnore)) { //[modif oto] Ajout éventuel de http:// pour éviter le niveau localhost dans les url $projectContents .= '<li><a href="'.($suppress_localhost ? 'http://' : '').$file.'">'.$file.'</a></li>'; } }
在http://后边加上localhost/就行,即:this
while (($file = readdir($handle))!==false) { if (is_dir($file) && !in_array($file,$projectsListIgnore)) { //[modif oto] Ajout éventuel de http:// pour éviter le niveau localhost dans les url $projectContents .= '<li><a href="'.($suppress_localhost ? 'http://localhost/' : '').$file.'">'.$file.'</a></li>'; } }