【问题标题】:Laravel Lumen error 500 at subdomainLaravel 流明错误 500 在子域
【发布时间】:2015-05-28 05:21:57
【问题描述】:

将“Lumen 应用程序”部署到“子域”(Digital Ocean 上的 LAMP Ubuntu 14.04)时出现白屏 (500 Internal Server Error)。在本地环境中一切正常(XAMPP for Windows)。

我的.htaccess 文件:

<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>

编辑:

/storage/logs 没有日志文件。我使用 Git 将项目拉入一个 sobdomain(没有日志文件,因为 .gitignore)。 /storage 拥有 0777 权限。

项目在 bitbucket:https://bitbucket.org/adlnetworks/adl-notificaciones (https://bitbucket.org/adlnetworks/adl-notificaciones.git)

请使用Develop(默认)分支。 我不知道怎么了。非常感谢!

【问题讨论】:

  • 有错误日志吗?如果是,请编辑您的问题并在此处添加错误日志的输出。谢谢。

标签: php apache lumen


【解决方案1】:

一切正常,Lumen 默认支持子域。我忘了在生产服务器上安装 composer 依赖项。

您好。

【讨论】:

    猜你喜欢
    • 2015-03-16
    • 2020-03-21
    • 2021-02-09
    • 2023-03-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-10-01
    • 2016-02-09
    相关资源
    最近更新 更多