2011-05-30 50 views
2

我正在嘗試爲Google Appengine應用程序設置一個靜態登錄頁面。但是,當我訪問網站的根目錄時,我得到了404。它在本地工作正常只是在我部署它時不起作用。 app.html頁面的工作,所以它只是不起作用的着陸頁。Google AppEngine上的靜態根頁面

下面是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 

回答

9

改變那些反斜槓轉發斜槓的東西。
應該是:

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

Backslashes are escape characters
所以你指定了一個不存在的路徑。

+1

哦,真是令人尷尬...... – Morten 2011-05-30 07:34:54