【问题标题】:Laravel routes not working in nginx Ubuntu 16Laravel 路由在 nginx Ubuntu 16 中不起作用
【发布时间】:2018-03-13 09:44:16
【问题描述】:

我在谷歌云平台上安装了 laravel 项目。 一切都很好,运行正常,但只有在我尝试访问其他路由时才运行索引路由,即 www.domain.com/testing 它显示错误 404

这是我的默认配置文件

【问题讨论】:

  • root(项目路径)的值是多少?
  • 显示您的路线代码
  • 你的文档根目录是什么?
  • 文档根目录:/var/www/html

标签: laravel nginx google-cloud-platform google-compute-engine laravel-5.5


【解决方案1】:

将您的文档根目录更改为

Document root : laravelprojectroot/public

【讨论】:

    【解决方案2】:

    这是我的路线文件图像。只知道我使用 nginx 和 Ubuntu 16 在 Google 云平台上创建了项目

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-06-11
    • 1970-01-01
    • 1970-01-01
    • 2016-11-05
    • 2015-01-26
    • 2015-03-13
    相关资源
    最近更新 更多