How to use Google App Engine with my own naked domain (not subdomain)?
dns, google-app-engine, google-cloud-platform
Solution
[Update April 2016] This answer is now outdated, custom naked domain mapping is supported, see Lawrence Mok's answer.
I have figured it out!
First off: it is impossible to link something like `mydomain.example` with your appspot app. This is considered a naked domain, which is not supported by Google App Engine (anymore). Strictly speaking, the answer to my question has to be "impossible". Read on...
All you can do is add subdomains pointing to your app, e.g `myappid.mydomain.example`. The key to get your top level domain linked to your app is to realize that `www` is a subdomain like any other!
`myappid.mydomain.example` is treated exactly the same as `www.mydomain.example`!
Here are the steps:
- Go to appengine.google.com, open your app
- Administration > Versions > Add Domain... (your domain has to be linked to your Google Apps account, follow the steps to do that including the domain verification.)
- Go to www.google.com/a/yourdomain.example
- Dashboard > your app should be listed here. Click on it.
- myappid settings page > Web address > Add new URL
- Simply enter `www` and click Add
- Using your domain hosting provider's web interface, add a CNAME for `www` for your domain and point to `ghs.googlehosted.com`
Now you have `www.mydomain.example` linked to your app.
I wished this would have been more obvious in the documentation.
Problem
After hours of reading about and experimenting with DNS records I can access my Google App Engine app via these URLs: - `myappid.appspot.com` - `www.myappid.myowndomain.example` What does not work: - `myowndomain.example` - `www.myowndomain.example` I want to be able to serve my app directly off my domain and not a subdomain. I've seen apps that do this. Is there any way to do this without a URL redirect?