【发布时间】:2013-06-14 21:26:46
【问题描述】:
对 GAE 完全陌生,想在本地使用 GAE 测试我的 php 站点。 我已经完成所有设置,并让我的网站使用 GAE 在 localhost:8080 上运行。
php 站点已经使用 nginx 运行,配置如下
# 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;
像 localhost/dynamic-url 这样的 url 已经被转发到像 index.php?q=dynamic-url 这样的 php 应用程序。
如何使用 GAE 实现这一点?我可以在不接触 php 文件的情况下做到这一点吗?
这是我的 yaml 文件
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
【问题讨论】:
标签: php google-app-engine url-rewriting yaml