Laravel app snipe-IT 的 Nginx 安装显示 404

Nginx install of Laravel app snipe-IT shows 404

获得 Snipe-ITLarvel 等的所有配置后。尝试登录时出现 404 错误。

没有更多信息。我在我的作品 app.php 中启用了 'debug',但没有显示其他信息。

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

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

早上在搜索 Google 时(有什么不同)我发现它使用 laravel 和 nginx 的关键字:

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

文章中给出了对我有用的解决方案,将 "try files" 替换为:

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

当我重新启动 Nginx 后,一切都很顺利。