2014-11-06 57 views
0

我的app.yaml是像下面不靈谷歌應用程序引擎的子目錄 - PHP

handlers: 

- url: /static 
    static_dir: static 

- url: /static 
    script: /static/index.html 

- url:/
    script: index.html 

所以,我需要的是當我訪問的URL http://xyz.appspot.com/static ...它應該顯示的static/index.html內容....但我得到找不到錯誤......而http://xyz.appspot.com/static/index.html工作正常

+0

也許你並不需要在/靜在指數的前面。 H TML? – 2014-11-06 09:20:56

+0

我刪除/靜態,但仍然不工作.. – 2014-11-06 09:23:16

+0

其他index.html工作? – 2014-11-06 09:26:49

回答

1

您還沒有定義的處理程序,你需要像

handlers: 

- url: /static 
    static_dir: static 

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

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