Hi Eliot,

Short answer: When asked for what domain, I think you need to enter
"domain.com", not "dev.domain.com". The next page is where you get to
specify the hostname.

Broc


For the longer answer, I thought I'd share some of the other subtle
things I learned by trial and error when going down these roads,
including the use of domain "aliases". I am regurgitating the
following (edited) notes from my personal tech journal, if they might
be useful too.

First, let's assume you have the domain 'domain.com' as your main
domain that you have signed up with Google Apps.

If you are using another domain name other than your primary domain
name, the you must setup domain aliases from your Google Apps control
panel for "Domain Settings", i.e.,  
https://www.google.com/a/cpanel/domain.com/DomainSettingsDomains

When adding a domain to your Google Apps account, you must choose
between adding it as a "fully independent" domain, or as a "domain
alias". I found by trial and error that you must use a domain alias in
order for it to be used as a domain name for an app engine
application. Setting this up is just a matter of setting a CNAME
record in your DNS that points back to google per their instructions.
You must wait for the "verified" status to come through such that
google recognizes your DNS change.**

Once you have a verified domain alias (or you are just using your
primary domain) you may visit the control panel of your app engine
app, i.e.,
  https://appengine.google.com/dashboard?&app_id=XXXXXXXXX

1) Click the "Application Settings" link on the left panel.
2) Click the "Add Domain..." button (toward the bottom of the page).
3) In the text box labelled "Domain Name", you must supply your Google
Apps domain (domain.com) -- NOT the desired domain you want
(prod.domain.com).
4) Click the "Add Domain..." button. (takes you to a page in your
Google Apps control panel)
5) Click "Add new URL" link.
6) Supply the desired hostname after the "http://";, and choose a
domain from a fixed set of choices, which include your primary domain,
and your domain aliases, but not any "full citizen" domains you have
added to your Google Apps.
7) Click "Add".


** When I setup my DNS CNAME, it was stuck in "verifying..." mode for
several days, past the 48 hours advertised for verification. I had to
email Google Apps support and ask them to fix it. They did, quickly,
citing something about their "propagation process" gone awry. I
thought nothing of it, except that all of this happened again a second
time when I added a second alias. I hope it is no longer an issue.
Just a heads up.



On Oct 18, 7:30 am, Eliot Stock <1...@eliotstock.com> wrote:
> Hi there,
>
> I'd like to create subdomains for various environments under my domain.com
> as follows:
>
> dev.domain.com would map to the app ID dev-domain-com
> test.domain.com -> app ID: test-domain-com
> prod.domain.com -> app ID: prod-domain-comwww.domain.com-> app ID: 
> prod-domain-com
>
> Is this possible? When adding the URL dev.domain.com to an existing GAE app,
> the redirect into the Google Apps control panel gives me the following
> error:
>
> "Sorry, you've reached a login page for a domain that isn't using Google
> Apps"
>
> This is not true: domain.com is definitely a domain using Google Apps. It's
> being confused by dev.domain.com though.
>
> Any ideas?
>
> Cheers,
>
> Eliot.

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

Reply via email to