全新的GAE,我想在本地使用GAE测试我的php站点。我已经完成了所有的设置,并让我的站点在localhost:8080和GAE上运行。
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发布于 2013-06-15 06:03:01
有关在GAE上站立drupal的优秀帖子中的"Clean URL“一节,请参阅编写简单路由器脚本的方法。
http://blog.boombatower.com/drupal-google-app-engine
https://stackoverflow.com/questions/17117542
复制相似问题