【发布时间】:2015-07-09 16:38:10
【问题描述】:
在本地(通过应用引擎启动器)提供服务时,会显示 error.html 页面,但在部署时,当我收到 404/etc 响应时,它不会解析为错误页面。
我部署了新版本,但也没有用。我的 YAML 文件有什么问题吗?或者有人有其他建议吗?
谢谢
YAML 文件
application: xxxmeowxxx
version: 1-5
runtime: php55
api_version: 1
handlers:
# Serve as static resources.
- url: /img
static_dir: img
- url: /css
static_dir: css
- url: /js
static_dir: js
- url: /fonts
static_dir: fonts
- url: /Documents
static_dir: Documents
# Serve php scripts
- url: /(.+\.php)$
script: \1
#serve php scripts without needing .php
- url: /(.+)
script: \1.php
#serve index
- url: /
script: index.php
#Error handle
error_handlers:
- file: error.html
【问题讨论】:
标签: php google-app-engine