【发布时间】:2016-09-19 18:01:39
【问题描述】:
获取Snipe-IT 和Larvel 等的所有配置后,我在尝试登录时遇到404 错误。
没有其他信息。我在我的生产 app.php 中启用了“调试”,但没有额外的信息出来。
Apache 报告并解决了很多问题,需要安装 mod_rewrite。
找不到Snipe-IT 和这个问题的任何内容。
【问题讨论】:
标签: php laravel nginx http-status-code-404
获取Snipe-IT 和Larvel 等的所有配置后,我在尝试登录时遇到404 错误。
没有其他信息。我在我的生产 app.php 中启用了“调试”,但没有额外的信息出来。
Apache 报告并解决了很多问题,需要安装 mod_rewrite。
找不到Snipe-IT 和这个问题的任何内容。
【问题讨论】:
标签: php laravel nginx http-status-code-404
早上搜索谷歌时(有什么不同),我使用 laravel 和 nginx 的关键字找到了这个:
http://laravel.io/forum/05-08-2014-nginx-laravel-routing-shows-404
对我有用的解决方案如文章中所述,将“尝试文件”替换为:
try_files $uri $uri/ /index.php$is_args$args;
一旦我重新启动 Nginx,一切都像魅力一样运行。
【讨论】: