views:

9893

answers:

9

Hi all,

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.com

What does not work:

  • myowndomain.com
  • www.myowndomain.com

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?

Thanks, Mark

+7  A: 

See http://www.google.com/support/a/bin/answer.py?hl=en&answer=91077 for the details. Once you have signed up for Google Apps for Your Domain:

# Sign in to the Google App Engine admin console.
# Go to Administration > Versions
# Click the 'Add Domain...' button under Domain Setup.
# Enter your domain name in the 'Domain Name:' field
# Click 'Add Domain'. You will be directed to the Google Apps administrator console to complete the process.
# Log in to the Google Apps control panel with your administrator account.
# Accept the terms and specify the access URL you'd like to provide for your application.
# Click 'Accept

You can't use a naked domain, though, such as whatever.com (but www.whatever.com does work), because: """ Due to recent changes, Google App Engine no longer supports mapping your app to a naked domain. If your domain registrar supports URL redirects, you can redirect from http://yourdomain.com to your app, which can be served from domains like http://www.yourdomain.com or http://appid.yourdomain.com. """ as specified at http://www.google.com/support/a/bin/answer.py?answer=91080

Alex Martelli
Thanks for the quick reply. I had done all that already, I added my domain to my Google Apps account. Now my app is listed as a service. The primary domain is set to mydomain.com and my app lists the subdomain (www.myappid.mydomain.com). I must be missing something. Adding the subdomain worked right away, so I doubt that it is some update/DNS/settings issue... When I go to www.mydomain.com I get "Server Not Found".
Mark
I think I have the same problem... adding "www." for the google app engine Web address doesn't respond. Right now wehearttoronto.com is directing to the google sites...
TimLeung
+38  A: 

I have figured it out!

First off: it is impossible to link something like mydomain.com 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.com. 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.com is treated exactly the same as www.mydomain.com!

Here are the steps:

  1. Go to appengine.google.com, open your app
  2. 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.)
  3. Go to www.google.com/a/yourdomain.com
  4. Dashboard > your app should be listed here. Click on it.
  5. myappid settings page > Web address > Add new URL
  6. Simply enter www and click Add
  7. Using your domain hosting provider's web interface, add a CNAME for www for your domain and point to ghs.google.com

Now you have www.mydomain.com linked to your app.

I wished this would have been more obvious in the documentation...Good luck!

Mark
Heh, my bad -- I thought you _knew_ www is a subdomain like any other, but should have considered spelling it out!
Alex Martelli
Hey Mark, any reason why www.mydomain.com will be showing the google sites instead of the app engine domain?
TimLeung
For example, my domain is http://www.wehearttoronto.com/ but this is directing to the google sites ?
TimLeung
To get the naked mydomain.com to work, just redirect it to the www subdomain.
Steve Johnson
A: 

What should the 'A Record' be set to on GoDaddy? This needs to point to an IP.

Dean Del Ponte
+2  A: 

Google does not provide an IP for us to set A record. If it would we could use naked domains.

There is another option, by setting A record to foreign web server's IP and that server could make an http redirect from e.g domain.com to www.domain.com (check out GiDNS)

A: 

Your answer works fine, but only remember erase the default assignation of the www subdomain (google assign it by default)

Kristian Damian
+4  A: 

Another solution which is given by Google is URL forwarding: http://www.google.com/support/a/bin/answer.py?hl=en-in&answer=61057

Tahir Akram
A: 

How and where can one remove the default www subdomain Google sets up?

jj
If you have a own question you should ask it as a new question, not post it as an answer to some other question. The "Ask Question" button is in the top right.
sth
+1  A: 

If like me you have seen this message while trying to add 'www' as a subdomain inorder to get your own domain working:

'Already used, please remove previous mapping first . '

The above process mentioned in other answers has changed slightly if you are using Google Apps for your domain.

You must now do this as well:

Google Apps -> Service Settings -> Sites. Click 'Web address mapping' and remove the 'www' mapping which has been added by default to Sites.

Then you can add the 'www' subdomain for your App engine app

see this link:

http://groups.google.com/group/google-appengine/web/deleting-existing-www-mapping-from-google-apps

andy boot
+3  A: 

Any one who is interested in using naked domain for google app engine should vote for this issue

http://code.google.com/p/googleappengine/issues/detail?id=777

servlet