cname DNS aliasing

305 views
Skip to first unread message

Adam Loving

unread,
Jul 3, 2009, 2:58:15 AM7/3/09
to Google App Engine
Hi -

I have my app engine app running on www.a.com with the normal cname
configuration. I want to map someone else's c.b.com to my www.a.com or
c.a.com using a cname (with their permission). The end result should
be that c.b.com renders the exact same content that www.a.com renders
(though presumably it is possible to detect the host name and
customize the content).

I have tried both of these cname mappings:

c -> www.a.com
c -> c.a.com (I have configured c.a.com and verified that it works)

After waiting a bit for the DNS to go through, I get a 404 "server not
found" as demonstrated below. I interpret this to mean the request has
reached google (the IP address matches that of www.a.com), but google
doesn't know what to do with the request since all it has is the
original host name.

Is there any way around this problem other than an iframe or redirect
on c.b.com?

Thanks in advance for your help,
Adam

$ curl -v http://c.b.com
* About to connect() to c.b.com port 80 (#0)
* Trying 74.125.53.121... connected
* Connected to c.b.com (74.125.53.121) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.16.3 (powerpc-apple-darwin9.0) libcurl/7.16.3 OpenSSL/0.9.7l zlib/1.2.3
> Host: c.b.com
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Date: Fri, 03 Jul 2009 06:52:42 GMT
< Expires: Fri, 03 Jul 2009 06:52:42 GMT
< Cache-Control: private, max-age=0
< X-Content-Type-Options: nosniff
< Content-Length: 142
< Server: GFE/2.0
< Content-Type: text/html
<
<HTML>
<HEAD>
<TITLE>404</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Server Not Found</H1>
<H2>Error 404</H2>
</BODY>
</HTML>

Nick Johnson (Google)

unread,
Jul 3, 2009, 5:20:29 AM7/3/09
to google-a...@googlegroups.com
Hi Adam,

In order to map a domain to an App Engine app, you need your user to
CNAME their domain to ghs.google.com, then sign their domain up for
Google Apps, and use that to set up the mapping.

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

Adam Loving

unread,
Jul 3, 2009, 2:11:56 PM7/3/09
to Google App Engine
Hi,

I need more help on what you mean by "use that to set up the mapping".

Both domains are set up as Google Apps domains. When I sign in to
domain B, and attempt to add the app engine app by app ID, I get:

Server error
We are unable to process your request at this time, please try again
later.

If I log in to http://appengine.google.com, click "versions", then
"add domain", and accept the Google App Engine terms and conditions
for the domain B, I get:

An error occurred while trying to install this application. Please try
again later.

In case, there is already a app engine app running on www.b.com

On Jul 3, 2:20 am, "Nick Johnson (Google)" <nick.john...@google.com>
wrote:
> Hi Adam,
>
> In order to map a domain to an App Engine app, you need your user to
> CNAME their domain to ghs.google.com, then sign their domain up for
> Google Apps, and use that to set up the mapping.
>
> -Nick Johnson
>
>
>
> On Fri, Jul 3, 2009 at 7:58 AM, Adam Loving<adamlov...@gmail.com> wrote:
>
> > Hi -
>
> > I have my app engine app running onwww.a.comwith the normal cname
> > configuration. I want to map someone else's c.b.com to mywww.a.comor
> > c.a.com using a cname (with their permission). The end result should
> > be that c.b.com renders the exact same content thatwww.a.comrenders
> > (though presumably it is possible to detect the host name and
> > customize the content).
>
> > I have tried both of these cname mappings:
>
> > c ->www.a.com
> > c -> c.a.com (I have configured c.a.com and verified that it works)
>
> > After waiting a bit for the DNS to go through, I get a 404 "server not
> > found" as demonstrated below. I interpret this to mean the request has
> > reached google (the IP address matches that ofwww.a.com), but google
> > doesn't know what to do with the request since all it has is the
> > original host name.
>
> > Is there any way around this problem other than an iframe or redirect
> > on c.b.com?
>
> > Thanks in advance for your help,
> > Adam
>
> > $ curl -vhttp://c.b.com

Adam Loving

unread,
Jul 3, 2009, 2:15:55 PM7/3/09
to Google App Engine
I have also tried to add c.b.com as a comain alias on a.com on the
domain settings -> domain names page. But it has been stuck with the
message "Alias CNAME Verification in progress". I sort of think this
only applies to email anyway.

On Jul 3, 11:11 am, Adam Loving <adamlov...@gmail.com> wrote:
> Hi,
>
> I need more help on what you mean by "use that to set up the mapping".
>
> Both domains are set up as Google Apps domains. When I sign in to
> domain B, and attempt to add the app engine app by app ID, I get:
>
> Server error
> We are unable to process your request at this time, please try again
> later.
>
> If I log in tohttp://appengine.google.com, click "versions", then
> "add domain", and accept the Google App Engine terms and conditions
> for the domain B, I get:
>
> An error occurred while trying to install this application. Please try
> again later.
>
> In case, there is already a app engine app running onwww.b.com
>
> On Jul 3, 2:20 am, "Nick Johnson (Google)" <nick.john...@google.com>
> wrote:
>
> > Hi Adam,
>
> > In order to map a domain to an App Engine app, you need your user to
> > CNAME their domain to ghs.google.com, then sign their domain up for
> > Google Apps, and use that to set up the mapping.
>
> > -Nick Johnson
>
> > On Fri, Jul 3, 2009 at 7:58 AM, Adam Loving<adamlov...@gmail.com> wrote:
>
> > > Hi -
>
> > > I have my app engine app running onwww.a.comwiththe normal cname

Nick Johnson (Google)

unread,
Jul 6, 2009, 6:27:51 AM7/6/09
to google-a...@googlegroups.com
Hi Adam,

It sounds like the problem you're having is with Google Apps. Have you
tried contacting support for Apps with your problem?

-Nick Johnson

Richard

unread,
Jul 6, 2009, 12:39:27 PM7/6/09
to Google App Engine
Possible solution here:
http://www.google.com/support/forum/p/Google+Apps/thread?tid=724ef70272546852&hl=en&search_impression_id=7c32251d6a27cbee%3A12250e72a95&search_source=related_question


On Jul 6, 11:27 am, "Nick Johnson (Google)" <nick.john...@google.com>
wrote:
> Hi Adam,
>
> It sounds like the problem you're having is with Google Apps. Have you
> tried contacting support for Apps with your problem?
>
> -Nick Johnson
>
>
>
> On Fri, Jul 3, 2009 at 7:11 PM, Adam Loving<adamlov...@gmail.com> wrote:
>
> > Hi,
>
> > I need more help on what you mean by "use that to set up the mapping".
>
> > Both domains are set up as Google Apps domains. When I sign in to
> > domain B, and attempt to add the app engine app by app ID, I get:
>
> > Server error
> > We are unable to process your request at this time, please try again
> > later.
>
> > If I log in tohttp://appengine.google.com, click "versions", then
> > "add domain", and accept the Google App Engine terms and conditions
> > for the domain B, I get:
>
> > An error occurred while trying to install this application. Please try
> > again later.
>
> > In case, there is already a app engine app running onwww.b.com
>
> > On Jul 3, 2:20 am, "Nick Johnson (Google)" <nick.john...@google.com>
> > wrote:
> >> Hi Adam,
>
> >> In order to map a domain to an App Engine app, you need your user to
> >> CNAME their domain to ghs.google.com, then sign their domain up for
> >> Google Apps, and use that to set up the mapping.
>
> >> -Nick Johnson
>
> >> On Fri, Jul 3, 2009 at 7:58 AM, Adam Loving<adamlov...@gmail.com> wrote:
>
> >> > Hi -
>
> >> > I have my app engine app running onwww.a.comwiththe normal cname

Pavel Reznikov

unread,
Jul 5, 2009, 6:02:53 AM7/5/09
to Google App Engine
I get exactly the same error. Any ideas whats wrong with gae?

On 3 июл, 21:11, Adam Loving <adamlov...@gmail.com> wrote:
> Hi,
>
> I need more help on what you mean by "use that to set up the mapping".
>
> Both domains are set up as Google Apps domains. When I sign in to
> domain B, and attempt to add the app engine app by app ID, I get:
>
> Server error
> We are unable to process your request at this time, please try again
> later.
>
> If I log in tohttp://appengine.google.com, click "versions", then
> "add domain", and accept the Google App Engine terms and conditions
> for the domain B, I get:
>
> An error occurred while trying to install this application. Please try
> again later.
>
> In case, there is already a app engine app running onwww.b.com
>
> On Jul 3, 2:20 am, "Nick Johnson (Google)" <nick.john...@google.com>
> wrote:
>
> > Hi Adam,
>
> > In order to map a domain to an App Engine app, you need your user to
> > CNAME their domain to ghs.google.com, then sign their domain up for
> > Google Apps, and use that to set up the mapping.
>
> > -Nick Johnson
>
> > On Fri, Jul 3, 2009 at 7:58 AM, Adam Loving<adamlov...@gmail.com> wrote:
>
> > > Hi -
>
> > > I have my app engine app running onwww.a.comwiththe normal cname

Pashka R.

unread,
Jul 6, 2009, 4:13:41 PM7/6/09
to Google App Engine
Temporary solution found. You just need to switch your control panel
of google apps for domain to "Current version":

https://www.google.com/a/cpanel/<Your domain gere>/DomainSettings

Look at the very last option.



//wbr Pashka R. <pashka....@gmail.com>
Reply all
Reply to author
Forward
0 new messages