dkarp0
dkarp0

Reputation: 49

Forwarding "/blog" to a wordpress installation when using Google App Engine standard environment

I have a webapp running on Python2.7 in Google App Engine's standard environment.

We'd like to host a wordpress blog for the app available at /blog - with nginx this would be quite easy using it as a reverse-proxy, but since we have no control over the routing for the google app engine project, I'm not sure of the best way to implement this.

For SEO reasons, we'd like to avoid a blog.example.com subdomain.

Does anyone have any experience of doing something similar?

Upvotes: 2

Views: 231

Answers (2)

Dustin Ingram
Dustin Ingram

Reputation: 21520

This won't be possible unless the Wordpress blog is deployed as a separate App Engine service and dispatched accordingly.

Upvotes: 1

Alex
Alex

Reputation: 5276

Setup wordpress in App Engine by following these instructions, but edit the service name in the app.yaml so that it is a separate microservice:

https://github.com/GoogleCloudPlatform/php-docs-samples/tree/master/appengine/php72/wordpress

Then setup dispatch.yaml to route traffic to it:

https://cloud.google.com/appengine/docs/standard/python/reference/dispatch-yaml

Upvotes: 1

Related Questions