0

Totally new to GAE and want to test my php site using GAE locally. I've all setup and have my site running on localhost:8080 with GAE.

The php site have been running with nginx with the following config

# First attempt to serve request as file, then
# as directory, then fall back to index.html
try_files $uri $uri/ /index.php?q=$uri&$args;

Where the urls like localhost/dynamic-url have been forwarded to the php app like index.php?q=dynamic-url.

How can i make this happen with GAE? Can i make this happend w/o touching the php files?

This is my yaml file

application: gallerysite
version: 1
runtime: php
api_version: 1

handlers:

- url: /img
  static_dir: img

- url: /css
  static_dir: css

- url: /js
  static_dir: js

- url: /.*
  script: index.php
4

1 回答 1

1

有关编写简单路由器脚本的方法,请参阅 Jimmys 优秀文章中关于在 GAE 上建立 drupal 的“干净 URL”部分。

http://blog.boombatower.com/drupal-google-app-engine

于 2013-06-14T22:03:00.647 回答