【问题标题】:Nginx install of Laravel app snipe-IT shows 404Laravel 应用 snipe-IT 的 Nginx 安装显示 404
【发布时间】:2016-09-19 18:01:39
【问题描述】:

获取Snipe-ITLarvel 等的所有配置后,我在尝试登录时遇到404 错误。

没有其他信息。我在我的生产 app.php 中启用了“调试”,但没有额外的信息出来。

Apache 报告并解决了很多问题,需要安装 mod_rewrite。

找不到Snipe-IT 和这个问题的任何内容。

【问题讨论】:

    标签: php laravel nginx http-status-code-404


    【解决方案1】:

    早上搜索谷歌时(有什么不同),我使用 laravel 和 nginx 的关键字找到了这个:

    http://laravel.io/forum/05-08-2014-nginx-laravel-routing-shows-404

    对我有用的解决方案如文章中所述,将“尝试文件”替换为:

    try_files $uri $uri/ /index.php$is_args$args;
    

    一旦我重新启动 Nginx,一切都像魅力一样运行。

    【讨论】:

      猜你喜欢
      • 2014-06-23
      • 2018-01-03
      • 2023-03-26
      • 1970-01-01
      • 1970-01-01
      • 2016-07-29
      • 2021-09-26
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多