Multiple Domains for one app, even if you don't own the domain, or if other domain is already registered with Google Apps

40 views
Skip to first unread message

NickFranceschina

unread,
Sep 17, 2010, 3:05:23 PM9/17/10
to Google App Engine
I promise I have been searching... but I haven't been unable to find
the correct answer. Thus I turn to you fine folks.

So lets say I have my super fancy new killer app-engine app:
http://mykillerapp.com
which is my custom domain pointed to:
http://mykillerapp.appspot.com


and then because I'm a genius salesman, I convince Coca-Cola that they
need my app on their site. They write me a huge check with lots of
zeros and say "OK, lets set it up at http://awesome.coca-cola.com"


how can I make that happen? the only way i can see is to add coca-
cola.com to my google apps for domains account (verifying it with
CNAME or .HTML file)... but yeah, Coke isn't gonna let me do that cuz
it's obviously their domain.

or what if I sell it to JoeSchmoe.com who already has a google apps
account... I can't add his domain to my google apps because google
tells me "this domain is already registered" (or something like that)


SOOO... is there a way for me to only add awesome.coca-cola.com to my
google apps domain so I can link the app to it? or setup
awesome.JoeSchmoe.com if JoeSchmoe.com is already a google apps
customer?



alon

unread,
Sep 20, 2010, 8:01:46 AM9/20/10
to Google App Engine
Google App Engine uses google apps for hosting your app. it does not
let you host subdomains.
What you can do is try to register mydomain.cocacola.com as a google
app for your domain. i just tried it and it works fine. you can
register subdomains under domains that are already signed up with
google apps.

Then do the standard procedure. maybe that will work?

On Sep 17, 9:05 pm, NickFranceschina <nickfrancesch...@gmail.com>
wrote:
> I promise I have been searching... but I haven't been unable to find
> the correct answer.  Thus I turn to you fine folks.
>
> So lets say I have my super fancy new killer app-engine app:
>  http://mykillerapp.com
> which is my custom domain pointed to:
>  http://mykillerapp.appspot.com
>
> and then because I'm a genius salesman, I convince Coca-Cola that they
> need my app on their site.  They write me a huge check with lots of
> zeros and say "OK, lets set it up athttp://awesome.coca-cola.com"

Nick Johnson (Google)

unread,
Sep 20, 2010, 8:22:30 AM9/20/10
to google-a...@googlegroups.com
Hi Nick,

What you'd do is have the company in question sign up for Google Apps on the main domain (even if they don't activate any of the services on it), then add your App Engine app on a subdomain from within the Apps control panel.

-Nick Johnson




--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.




--
Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047

adams

unread,
Sep 20, 2010, 4:11:06 AM9/20/10
to Google App Engine
I've been playing around with this kind of scenario as well. As far as
I can tell you don't have to do anything from your side, except give
them your app engine id. Your client needs to have a Google Apps
account for their domain name. They can then add your app engine
application to their Google Apps account and point any URL for that
domain to your app engine application. They would do this by:

1. Logging into their Google Apps account
2. Click on "Add more services"
3. Enter app id on the Google App Engine section under "Other
services"

I am not 100% sure the above is true, but it seems to have worked for
one of my Google Apps domains.

On Sep 17, 10:05 pm, NickFranceschina <nickfrancesch...@gmail.com>
wrote:
> I promise I have been searching... but I haven't been unable to find
> the correct answer.  Thus I turn to you fine folks.
>
> So lets say I have my super fancy new killer app-engine app:
>  http://mykillerapp.com
> which is my custom domain pointed to:
>  http://mykillerapp.appspot.com
>
> and then because I'm a genius salesman, I convince Coca-Cola that they
> need my app on their site.  They write me a huge check with lots of
> zeros and say "OK, lets set it up athttp://awesome.coca-cola.com"

nacho

unread,
Sep 20, 2010, 6:02:07 PM9/20/10
to Google App Engine
What about the inverse case?

Let's say i have mydomain.com poiting to my appengine app and i want
to use something.mydomain.com poiting to another server? How can i do
it?

Geoffrey Spear

unread,
Sep 20, 2010, 9:27:03 PM9/20/10
to Google App Engine
You can't point the naked domain at an App Engine app at all.

However, App Engine doesn't control your DNS settings. You set CNAMEs
for the subdomains you want handled by App Engine or other Google Apps
services to ghs.google.com, and setup CNAME or A records for the other
addresses in your domain to point to wherever you want them to go.

James Mortensen

unread,
Oct 11, 2010, 3:42:03 AM10/11/10
to Google App Engine
I edited my GoDaddy DNS A and CNAME records and was able to point the
naked domain at my app engine app. It's possible to do even though
different resources on the Internet claim that it's impossible. I
suspect that Google means that it's impossible to do from Google Apps
or the App Engine Dashboard, but that doesn't include advanced DNS
configuration.

* I configured an A record to point *.domain.com to my app engine app
IP Address
* I configured a CNAME for www.domain.com to point to ghs.google.com

I suspect that one of those two changes may have something to do with
my success. Although honestly this isn't something that I do on a
regular basis. Hope this helps! If it does, awesome!

James

Robert Kluin

unread,
Oct 11, 2010, 4:49:40 PM10/11/10
to google-a...@googlegroups.com
"I configured an A record to point *.domain.com to my app engine app
IP Address"

Two thoughts immediately come to mind:
- What IP did you actually point to?
- If you pointed to something at Google, what are you going to do
when the IP your app serves from changes?

Nick Johnson (Google)

unread,
Oct 12, 2010, 11:46:55 AM10/12/10
to google-a...@googlegroups.com
Hi James,

On Mon, Oct 11, 2010 at 8:42 AM, James M <jmor...@gmail.com> wrote:
I edited my GoDaddy DNS A and CNAME records and was able to point the
naked domain at my app engine app.  It's possible to do even though
different resources on the Internet claim that it's impossible.  I
suspect that Google means that it's impossible to do from Google Apps
or the App Engine Dashboard, but that doesn't include advanced DNS
configuration.

* I configured an A record to point *.domain.com to my app engine app
IP Address

"*.domain.com" will map all subdomains to the same IP, not the 'naked' domain.

Further, ghs.google.com resolves to a number of IPs; these IPs change over time and depending on the location of the requester. Simply choosing one from the list will not work reliably.

Finally, App Engine will not be able to route your incoming requests correctly unless it's aware of your mapping, which it's not possible to do for a naked domain.

-Nick Johnson
 
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.

Reply all
Reply to author
Forward
0 new messages