在Laravel 4的beatnikbd.com/fb-apps/nandos-app/目录中,有一个名为server.php的文件。该文件的内容如下所示:
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <taylorotwell@gmail.com>
*/
$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';
但它显示ERROR 403 - FORBIDDEN
答案 0 :(得分:0)
检查您是否设置了此文件的权限&#34; server.php&#34;到755 ......