Google App Engine: versioning with custom sub domains

293 views
Skip to first unread message

Alex Fox

unread,
Jul 10, 2020, 2:20:15 PM7/10/20
to Google App Engine
I'm trying to setup GAE with a custom sub domain and a specific version url.

For example I have an app running with the following setup
VERSION_ID: 1234
SERVICE_ID: my-app
PROJECT_ID: my-project

The provided url https://1234-dot-my-app-dot-my-project.ew.r.appspot.com works fine. But I can't get to work with my custom domain + sub domain. Googles documentation states the following urls are the same:


But when visiting 1234.api.mycustomdomain.com it does not work. However api.mycustomdomain.com works, pointing to the latest running version of my-app

What am I missing?
Thanks.
 

Olu

unread,
Jul 14, 2020, 9:00:28 AM7/14/20
to Google App Engine
Hello, Alex

While I think I understand your request, I require a clarification. You mentioned that the Google documentation states using the Version ID with your Custom Domain is the same as using your Version ID with the appspot.com domain. Do you have the link to this Google documentation you refer?

I see a similar request as this posted on Stackoverflow[1], which I think you should check out. The answer on that post indicates that using the Version ID with the Custom Domain may not be possible as you cannot select a certain version of a service in the custom domain settings screen.

Please provide the link you refer for clarification. 

alexander noteboom

unread,
Jul 14, 2020, 11:04:38 AM7/14/20
to Google App Engine
Alex,

We are doing just what you describe, although we do it under the naked domain.

we have app.io pointing to appengine, which has a wildcard certificate mapped.
My appengine settings for custom domain are like this:

custom domain name | cert | record type | data | alias
*.app.io  | wildcard-certificate |  cname |  ghs.googlehosted.com. |   *
app.io  | wildcard-certificate |  A |  xx.xx.xx.xx |  (none)


all requests for app.io go to the default version.  We also have a release candidate version deployed, named 'rc'
Without any configuring all request for rc.app.io go automagically to the rc version.

This only works when you have the wildcard certifcate in place.  Just adding custom domain mappings for each version will not work.



Alexander

Alex Fox

unread,
Jul 15, 2020, 3:41:38 AM7/15/20
to Google App Engine
Hey Alexander,

This sounds like the functionality I want. Perhaps I need to experiment with a wild card certificate and avoid using the sub domains. 

Thanks,
Alex
Reply all
Reply to author
Forward
0 new messages