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?
2
Answers
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
This won’t be possible unless the WordPress blog is deployed as a separate App Engine service and dispatched accordingly.