wamp局域网可访问配置:
提示You don't have permission to access / on this server
搜索了一下,得到的结果基本上,如下设置:
1
2
3
|
AllowOverride all
Order allow,deny
Allow from all
|
但怎么设置依然还是提示You don't have permission to access / on this server.
将 Require local 换成 Require all granted即可
wamp中index.php配置问题
新安装的wampserver,进到localhost之后,点击自己的web目录xxx时候,会自动跳转到http://xxx,因为没有在apache的www目录中,所以不能进行显示,需要手动输入http://localhost/xxx才可以。要怎么配置呢,修改www目录中的index.php文件,如下的代码块
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>';
}
}
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>';
}
}