【发布时间】:2011-10-09 15:27:43
【问题描述】:
目录结构是-
MyApplication (Project Dir)
-static
--inside static, I got different dirs containing images, css, htmls, etc
-some other dirs
-app.yaml
-index.py
-index.html
app.yaml的内容是-
application: MyApplicationID
version: 1
runtime: python
api_version: 1
handlers:
- url: /favicon.ico
static_files: static/images/favicon.ico
upload: static/images/favicon.ico
mime_type: image/x-icon
- url: /robots.txt
static_files: static/robots.txt
upload: static/robots.txt
- url: /static
static_dir: static
secure: optional
- url: /projects
static_dir: projects
secure: optional
- url: /about
static_dir: about
secure: optional
- url: /
static_files: index.html
upload: index.html
- url: /.*
script: index.py
secure: optional
一切正常,除了如果 html 页面上的任何内容被重定向到“index.html”,我会发现找不到页面(“GET /index.html HTTP/1.1”404 -)错误.我试着跟随这个 - https://gist.github.com/873098 但仍然没有运气。我在其他线程上尝试了其他建议,但仍然没有运气。如果我删除 - url: / 仍然没有运气。请指教。
【问题讨论】:
标签: python google-app-engine http-status-code-404