1

您好我正在尝试让 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

4

1 回答 1

1

我发现出了什么问题——你不能将“\1”传递给 index.php——(这将由 REQUEST_URI 处理),否则应用程序引擎会寻找一个不存在的脚本显...

所以“\1”只适用于匹配真实文件。我认为它像 htaccess 一样工作,你可以在其中做类似的事情。

经验教训 =)

于 2014-12-23T02:08:34.023 回答