Apache的文件夹没有显示出来文件夹、Apache

由网友(う月下伊人醉)分享简介:我在使用上的托管环境中安装laraval 4应用程序的麻烦。 I'm having trouble with installing a laraval 4 app on a hosted environment. 我遇到目前的问题是,外出时的公共文件夹没有显示在列表中,以 www.eversite.be/larav...

我在使用上的托管环境中安装laraval 4应用程序的麻烦。

I'm having trouble with installing a laraval 4 app on a hosted environment.

我遇到目前的问题是,外出时的公共文件夹没有显示在列表中,以 www.eversite.be/laraval/ ,谁能告诉我这是为什么,以及如何使其可见。

The problem i'm having at the moment is that the "public" folder is not showing in the listing when going to www.eversite.be/laraval/, can someone tell me why that is, and how can i make it visible.

这是否有些事情要与Apache,例如权限设置。这将是陌生的,但因为我已经改变了文件夹777。

Does this have something to do with apache, for instance a permission setting. That would be strange though since i already changed the folder to 777.

Apache的错误日志:

Apache error log:

[Mon Jan 13 17:47:11 2014] [alert] [client 178.116.245.86] /sites/eversite.be/www/laravel/public/.htaccess: Options not allowed here
[Mon Jan 13 17:47:19 2014] [alert] [client 178.116.245.86] /sites/eversite.be/www/laravel/public/.htaccess: Options not allowed here
[Mon Jan 13 17:47:23 2014] [alert] [client 178.116.245.86] /sites/eversite.be/www/laravel/public/.htaccess: Options not allowed here

在.htaccess文件/公/

.htaccess file in /public/

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

一个链接的phpinfo(); : http://eversite.be/laravel/modrewrite.php

A link to phpinfo(); : http://eversite.be/laravel/modrewrite.php

THX,

推荐答案

在您的更新,似乎路径文件是不正确的。如果我没有记错, __ DIR __ 可能无法在PHP 5.2,这是您正在使用的版本。使用来代替:

In your update, it seems that the path to your files is not correct. If I'm not mistaken, __DIR__ may not be available in PHP 5.2, which is the version that you are using. Use instead:

dirname(__FILE__)
阅读全文

相关推荐

最新文章