我第一次尝试在 Google App Engine 上设置 WordPress。我正在关注Google 的教程,当我使用 cmd 在本地启动开发服务器时:
C:\Program Files\Google\google_appengine>dev_appserver.py C:\Development\myApp
我收到以下错误:
google.appengine.api.yaml_errors.EventError: Unknown url handler type.
<URLMap
auth_fail_action=redirect
static_dir=None
secure=default
http_headers=None
url=/wp-(.+).php
static_files=None
expiration=None
upload=None
api_endpoint=None
script=None
application_readable=None
position=None
login=optional
mime_type=None
require_matching_file=None
>
in "C:\Development\myApp\app.yaml", line 41, column 2
在教程中复制了“app.yaml”,但添加了正确的应用程序 ID:
application: myApp ID
version: wp
runtime: php
api_version: 1
handlers:
- url: /(.*\.(htm$|html$|css$|js$))
static_files: wordpress/\1
upload: wordpress/(.*\.(htm$|html$|css$|js$))
application_readable: true
- url: /wp-content/(.*\.(ico$|jpg$|png$|gif$))
static_files: wordpress/wp-content/\1
upload: wordpress/wp-content/(.*\.(ico$|jpg$|png$|gif$))
application_readable: true
- url: /(.*\.(ico$|jpg$|png$|gif$))
static_files: wordpress/\1
upload: wordpress/(.*\.(ico$|jpg$|png$|gif$))
- url: /wp-admin/(.+)
script: wordpress/wp-admin/\1
secure: always
- url: /wp-admin/
script: wordpress/wp-admin/index.php
secure: always
- url: /wp-login.php
script: wordpress/wp-login.php
secure: always
- url: /wp-cron.php
script: wordpress/wp-cron.php
login: admin
- url: /xmlrpc.php
script: wordpress/xmlrpc.php
- url: /wp-(.+).php
script: wordpress/wp-\1.php
- url: /(.+)?/?
script: wordpress/index.php
这是引发错误的行:
url: /wp-(.+).php
script: wordpress/wp-\1.php
所以,我不知道从这里做什么 - 任何想法都将不胜感激。
谢谢!