【发布时间】:2018-05-03 02:47:52
【问题描述】:
基本上我想在我的网站上使用我的应用引擎 PHP 项目。当我将一个文件放在我的主文件夹中但我想在我的网站上使用子目录时,它可以工作。例如,如果我想要一个论坛,我会创建 url https://example.com/forums/whatever.php。相反,我在主文件夹中创建子目录,当我访问上面列出的目录时,它只会给我一个 404 not found (nginx) 错误。
这是我的 app.yaml 文件:
runtime: php55
api_version: 1
handlers:
- url: /index
static_dir: index
- url: /static
static_dir: static
- url: /index/.*
script: home.php
【问题讨论】:
标签: php google-app-engine gcloud