【问题标题】:Laravel Vagrant - Inernal server errorLaravel Vagrant - 内部服务器错误
【发布时间】:2014-02-15 12:42:12
【问题描述】:

我正在与 Vagrant 一起做一个 Laravel 项目。我使用以下 URL 访问我的项目:localhost:8081

但最近,当我运行“Vagrant up”并尝试通过浏览器访问时,它显示“内部服务器错误”。

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

我唯一怀疑导致此问题的原因如下: 我的 torrent 客户端经常崩溃,我输入了以下命令来修复我的 torrent 崩溃:“netsh interface teredo set state disabled”(在网上找到了这个解决方案)

当我看到 vagrant ssh 进入我的虚拟机并 cd 进入 /var/log/apache2 并打开 error.log 时,我得到以下信息:

[Sat Feb 15 11:17:47.144253 2014] [core:error] [pid 924] [client 10.0.2.2:51189] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Sat Feb 15 11:17:51.706669 2014] [core:error] [pid 922] [client 10.0.2.2:51190] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

请帮忙,谢谢!

【问题讨论】:

    标签: php laravel vagrant


    【解决方案1】:

    我在发布此内容几周后找到了解决方案。在我发布这个问题时,Debian/Ubuntu 上的 Apache 得到了更新,文档根目录更改为 /var/www/html 而不是 /var/www。所以我不得不更改 vagrant 文件中的 sym 链接以使其正常工作。

    【讨论】:

      【解决方案2】:

      检查您的 .htaccess 或虚拟主机配置。

      尝试删除它们并使用绝对 URL 访问。

      如果没有帮助,请检查您的 php.ini 文件是否有错误。

      【讨论】:

        【解决方案3】:

        根据你的错误日志报告:

        [2014 年 2 月 15 日星期六 11:17:47.144253] [core:error] [pid 924] [client 10.0.2.2:51189] AH00124:由于可能的配置错误,请求超出了 10 个内部重定向的限制。利用 'LimitInternalRecursion' 必要时增加限制。利用 'LogLevel debug' 获取回溯。

        这是一个内部服务器错误,很可能是因为.htaccess 文件中的任何无效Mod_Rewrite 规则可能会创建redirect loop

        无法具体提供帮助,但this 可能会给您一些想法,这些答案(equest-exceeded...1request-exceeded...2)也可能会有所帮助。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2017-04-12
          • 1970-01-01
          • 2014-10-25
          • 2015-08-12
          • 2016-07-10
          • 1970-01-01
          • 2018-08-01
          相关资源
          最近更新 更多