开发者

Static root page on Google AppEngine

I'm trying to set up a static landing page for a google appengine application. However开发者_Python百科 I get 404 when I go to the root of the site. It works fine locally just doesn't work when I deploy it. The app.html page work so its just the landing page thats not working.

Here's something from app.yaml

handlers:
- url: /rest/.*
  script: main.py
  login: required

- url: /js
  static_dir: static/js

- url: /
  static_files: static\index.html
  upload: static\index.html

- url: /app.html
  static_files: static/app.html
  upload: static/app.html
  login: required

- url: /.*
  script: main.py


Change those backslashes to forward-slashes.
Should be:

- url: /
  static_files: static/index.html
  upload: static/index.html

Backslashes are escape characters.
So you were specifying a path that doesn't exist.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜