经过几个小时的阅读和尝试DNS记录后,我可以通过这些url访问我的谷歌应用程序引擎应用程序:
myappid.appspot.com www.myappid.myowndomain.example
不奏效的:
myowndomain.example www.myowndomain.example
我希望能够服务我的应用程序直接离开我的域,而不是一个子域。我见过这样的应用。有没有办法在没有URL重定向的情况下做到这一点?
经过几个小时的阅读和尝试DNS记录后,我可以通过这些url访问我的谷歌应用程序引擎应用程序:
myappid.appspot.com www.myappid.myowndomain.example
不奏效的:
myowndomain.example www.myowndomain.example
我希望能够服务我的应用程序直接离开我的域,而不是一个子域。我见过这样的应用。有没有办法在没有URL重定向的情况下做到这一点?
当前回答
[更新2016年4月]这个答案现在已经过时,支持自定义裸域映射,请参阅Lawrence Mok的回答。
我想明白了!
首先:不可能链接像mydomain这样的东西。这被认为是一个裸域,谷歌应用程序引擎(不再支持)。严格地说,我的问题的答案必须是“不可能的”。继续阅读…
你所能做的就是添加指向你的应用程序的子域,例如myappid.mydomain.example。让你的顶级域名链接到你的应用程序的关键是要意识到www是一个子域名像任何其他!
Myappid.mydomain.example与www.mydomain.example完全相同!
以下是步骤:
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
现在您已经将www.mydomain.example链接到应用程序。
我希望这一点在文档中更加明显。
其他回答
当你去“应用程序设置->添加域”它会要求选择登录帐户,可能你已经在gmail帐户,所以它也会显示gmail帐户,但你应该使用谷歌应用程序帐户,你已经映射了你的自定义域。
您必须尝试这样做,应用程序设置>添加域…
如果你像我一样,在尝试添加“www”作为子域以使自己的域正常工作时看到了这条消息:
“已使用,请删除之前的。 先画地图。”
如果您的域使用谷歌应用程序,以上在其他答案中提到的过程略有变化。
现在你也必须这样做:
谷歌应用程序->服务设置->站点。点击“Web地址映射”,删除默认添加到Sites的“www”映射。
然后你可以为你的App引擎应用添加“www”子域
请看这个链接:
http://groups.google.com/group/google-appengine/web/deleting-existing-www-mapping-from-google-apps
谷歌提供裸域重定向。
登录您的谷歌应用程序帐户,并选择“管理此域” 导航到域设置 在“域设置”中,导航到“域名” 有一个链接说“更改a记录”。单击它将为您提供需要创建的A记录的目标ip。
[更新2016年4月]这个答案现在已经过时,支持自定义裸域映射,请参阅Lawrence Mok的回答。
我想明白了!
首先:不可能链接像mydomain这样的东西。这被认为是一个裸域,谷歌应用程序引擎(不再支持)。严格地说,我的问题的答案必须是“不可能的”。继续阅读…
你所能做的就是添加指向你的应用程序的子域,例如myappid.mydomain.example。让你的顶级域名链接到你的应用程序的关键是要意识到www是一个子域名像任何其他!
Myappid.mydomain.example与www.mydomain.example完全相同!
以下是步骤:
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
现在您已经将www.mydomain.example链接到应用程序。
我希望这一点在文档中更加明显。