Route app engine's subdirectory to a wordpress VM?

132 views
Skip to first unread message

Ryan Sacha

unread,
Aug 28, 2018, 9:10:45 AM8/28/18
to Google App Engine

I have a Node JS appengine app. but i want to route anything /blog/* to a separate wordpress VM created through the cloud launcher. it's not an appengine service, just a compute engine VM.

How can I do this?


Current app.yaml:


runtime: nodejs
env: flex

manual_scaling:
  instances: 1
resources:
  cpu: 1
  memory_gb: 0.5
  disk_size_gb: 10

handlers:
- url: /.*
  script: auto
  secure: always
  redirect_http_response_code: 301

Sam (Google Cloud Support)

unread,
Aug 28, 2018, 4:43:07 PM8/28/18
to Google App Engine
Hello,

You can route requests coming to '/blog/*' to a URL (WordPress) or service (GCE VM instance) using a dispatch file to define your own custom routing rules (up to 20) [1]. Take a look at the first documentation below to understand how it works and how to deploy the 'dispatch.yaml' file. This second documentation shows you the syntax for configuring the 'dispatch.yaml' file. Both provide examples. Hope this helps.


Reply all
Reply to author
Forward
0 new messages