ERROR 403 - FORBIDDEN Laravel中的server.php文件

时间:2015-11-04 09:08:51

标签: php laravel laravel-4

在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

1 个答案:

答案 0 :(得分:0)

检查您是否设置了此文件的权限&#34; server.php&#34;到755 ......