嗨,我正在尝试让EasyAppointments在Google App Engine上运行。(基于PHP的约会安排 - 请不要问我为什么请..有点"被迫"这样做.
我显示安装屏幕,但我的app.yaml有问题:
尝试运行安装时,有一个"index.php/appointments/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
我发现了哪里出了问题 - 您不能将"''1"传递给索引.php - (这将由REQUEST_URI处理),因为否则应用程序引擎将查找一个不存在的脚本 obv...
所以"''1"只适用于与真实文件匹配。我以为它就像一个htaccess一样工作,你可以做这样的事情。
吸取的教训=)