2015-11-04 139 views
0

在Laravel 4的beatnikbd.com/fb-apps/nandos-app/目录中,有一个名为server.php的文件。这个文件的内容是这样的:错误403 - FORBIDDEN Laravel中的server.php文件

<?php 
/** 
* Laravel - A PHP Framework For Web Artisans 
* 
* @package Laravel 
* @author Taylor Otwell <[email protected]> 
*/ 

$uri = urldecode(
    parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) 
); 

// This file allows us to emulate Apache's "mod_rewrite" functionality from the 
// built-in PHP web server. This provides a convenient way to test a Laravel 
// application without having installed a "real" web server software here. 
if ($uri !== '/' && file_exists(__DIR__.'/public'.$uri)) 
{ 
    return true; 
} 

require_once __DIR__.'/public/index.php'; 

但它显示错误403 - 禁止

+0

是的文件有足够的权限? –

+0

给出的文件许可644 –

+0

看起来像该目录中的所有内容都给出403,是否允许网络服务器访问它?无论如何,'server.php'在不在网络服务器上时使用,因为它利用了内置的PHP网络服务器 –

回答

0

检查,如果你设置这个文件“server.php”为755的权限...

+0

这是否有资格成为答案? –