【发布时间】:2018-03-05 09:55:39
【问题描述】:
我在 Google App Engine 中部署了一个 PHP 项目作为灵活环境,我想要的是有一个自定义 URL 以便用户可以按下
www.example.com/user
必须指向
www.example.com/core/userProfile/user.php
我已将app.yaml 更改为这个,但我无法让它工作
runtime: php
env: flex
service: api
api_version: 1
threadsafe: true
resources:
cpu: 1
memory_gb: 1
disk_size_gb: 10
# Starting Point
runtime_config:
document_root: '.'
# Routers
handlers:
- url: /test.php
script: /test.php
- url: /index.php
script: index.php
- url: /user
script: core/userProfile/user.php
任何网址都会给出以下结果
Error: Not Found
The requested URL /user was not found on this server.
【问题讨论】:
标签: php google-app-engine app.yaml