无法使用Google AppEngine访问索引页面

时间:2017-10-28 15:23:35

标签: google-app-engine

在尝试访问我的网站bob.com的主页时(仅举例),我希望index.html能够显示。相反,我得到了404。

要联系index.html,我必须手动浏览bob.com/index.html

我目前的app.yaml错误怎么办?

runtime: php
env: flex

runtime_config:
  document_root: ./index.html


handlers:

# Handle the main page by serving the index page.
# Note the $ to specify the end of the path, since app.yaml does prefix matching.
- url: /*
  static_files: index.html
  upload: index.html

1 个答案:

答案 0 :(得分:0)

这就是诀窍:

runtime: php
env: flex

runtime_config:
  document_root: .
  front_controller_file: index.html