【发布时间】:2014-02-01 13:12:12
【问题描述】:
我在托管环境中安装 Laravel 4 应用程序时遇到问题。
我目前遇到的问题是“公共”文件夹在转到 www.eversite.be/laravel/ 时未显示在列表中,有人可以告诉我这是为什么,以及如何使其可见。
这是否与 Apache 有关,例如权限设置?不过那会很奇怪,因为我已经将文件夹更改为 777。
Apache 错误日志:
[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 文件在 /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
【问题讨论】:
-
我也有同样的问题。你找到解决办法了吗?
-
我删除了
<IfModule mod_negotiation.c> Options -MultiViews </IfModule>并修复了问题。希望对您有所帮助。
标签: laravel apache .htaccess laravel-4