【发布时间】:2018-07-27 08:20:19
【问题描述】:
我的应用程序包含 Angular 和 Php Yii2 框架。
我在 Google App Engine 上托管了我的应用程序。
这是我的 app.yaml 文件的内容:
threadsafe: true
runtime: php55
api_version: 2
handlers:
# The root URL (/) is handled by the Go application.
# No other URLs match this pattern.
- url: /(.+)
static_files: \1
upload: (.*)
- url: /web-service/*
script: web-service/yii
- url: /
static_files: index.html
upload: index.html
我的 Yii2 库在 web-service 目录中可用,但是当我从邮递员调用 REST API 时,它会返回“404 page not found”错误。
我的 app.yaml 文件中是否缺少某些内容?
请帮我解决这个问题。我的 API 调用是这样的:
https://abcxyz.appspot.com/web-service/web/user-registration/login-user
【问题讨论】:
标签: google-app-engine google-cloud-platform