Apache的文件夹没有显示出来 [英] Apache folder not showing up

查看:327
本文介绍了Apache的文件夹没有显示出来的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用上的托管环境中安装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__)

这篇关于Apache的文件夹没有显示出来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆