2014-12-22 49 views
1

嗨我試圖讓EasyAppointments在Google App Engine上運行。 (基於php的預約安排 - 不要問我爲什麼please..kinda「被迫」做吧..)Google App Engine - 如何設置app.yaml的請求,如:index.php/foo/bar?

我得到的安裝屏幕顯示,但有一個與我的app.yaml一個問題:

當試圖運行安裝有一個「index.php /約會/ ajaxInstall」的請求,但它只是返回一個404。必須有一個錯誤,但我似乎無法找到它......(還沒有用過gae呢。 。所以我不太熟悉app.yaml的配置)

我希望有人能給我一個提示。

繼承人我的app.yaml(注:所有數據都位於目錄 「terminbuchung」):

application: xyz 
 
version: terminbuchung 
 
runtime: php 
 
api_version: 1 
 

 
handlers: 
 
- url: /(.*\.(ico$|jpg$|png$|gif$)) 
 
    static_files: terminbuchung/\1 
 
    upload: terminbuchung/(.*\.(ico$|jpg$|png$|gif$)) 
 
    application_readable: true 
 

 
- url: /(.*\.(htm$|html$|css$|js$)) 
 
    static_files: terminbuchung/\1 
 
    upload: terminbuchung/(.*\.(htm$|html$|css$|js$)) 
 
    application_readable: true 
 
    
 
- url:/
 
    script: terminbuchung/index.php 
 

 
- url: /index\.php/(.*) 
 
    script: terminbuchung/index.php/\1 
 
    
 
- url: /(.+\.php)(.*)$ 
 
    script: terminbuchung/\1

+0

是否所有的腳本都能正確工作和映射? 腳本:terminbuchung/index.php文件/ \ 1 腳本:terminbuchung/\ 1個 腳本:terminbuchung/index.php文件 –

+0

羅試圖請求東西一樣的index.php /富/酒吧時,有404 - 但不該網址參數工作..但我發現我的錯誤..看下面。 但非常感謝回覆! – techWiz

回答

1

我發現了什麼是布萊恩錯了 - 你一定不及格「\ 1」到index.php - (這將由REQUEST_URI處理),因爲否則應用引擎將會尋找一個像這樣的腳本,它不存在obv ...

所以「\ 1 「只適用於真正的匹配文件。我認爲它像htaccess一樣可以在那裏做類似的事情。

獲得的經驗教訓=)

+0

這正是我的評論所引用的,你的處理程序的映射不正確。我不知道你爲什麼有一個\ 1,我猜這是你的處理程序的方法名稱? –

相關問題