经过几个小时的阅读和尝试DNS记录后,我可以通过这些url访问我的谷歌应用程序引擎应用程序:

myappid.appspot.com www.myappid.myowndomain.example

不奏效的:

myowndomain.example www.myowndomain.example

我希望能够服务我的应用程序直接离开我的域,而不是一个子域。我见过这样的应用。有没有办法在没有URL重定向的情况下做到这一点?


当前回答

你可以为你的应用引擎创建一个自定义域(包括裸域),你也可以在那里设置自管理的SSL证书。

要使用自定义域,请将域映射到应用程序,然后更新DNS记录。可以映射裸域(例如example.com)或子域(例如subdomain.example.com)。您还可以使用通配符来映射子域。

将自定义域映射到应用程序的步骤如下-

In Console,go to the Application settings tab of the App Engine Settings page -->If you need to enable G Suite authentication then click Edit to modify the Google Accounts API Referrer-->In the Google Authentication drop-down menu, select G Suite domain, then add your domain such as example.com in the empty field. Go to the Custom Domains tab of the App Engine Settings page--> Click on add custom Domain-->If your Domain is already verified then select it from the drop down menu-->click Continue.

如果您还没有验证您的域,请执行以下步骤:

 a) Select Verify a new domain from the drop-down menu.

 b) Enter your naked domain name (such as "example.com") and click Verify.   
          
 c)  Enter information in the Webmaster Central window that appears. 

 d) After you complete the steps in Webmaster Central, return to the Add a new    
 custom domain page in the Google Cloud Console.

在将域指向(项目- id)部分中,指定要映射的域和子域。我们建议映射裸域和www子域——>单击保存映射。 登录到你的域名注册商网站,更新你的DNS记录。

有关所需步骤的详细说明,请参阅以下连结-

https://cloud.google.com/appengine/docs/standard/python/mapping-custom-domains

其他回答

几个小时后才整理好。www子域指向网站,但前端没有显示我。

在大胆尝试并将CNAME设置为gwh.google.com之后,并启用/禁用了几次站点(参见Rodrigo Moraes在http://groups.google.com/group/google-appengine/web/deleting-existing-www-mapping-from-google-apps上的评论),我能够将站点地址设置为使用www子域。

然后,我能够改变它远离使用www子域,在这一点上,appengine应用程序允许我指定www子域。

这是一个肮脏的修复-基本上打开和关闭网站,直到它工作!

[更新2015-09-28]现在谷歌允许您添加自定义域(包括裸域)和设置SSL,而不需要谷歌应用程序。详情见:https://cloud.google.com/appengine/docs/using-custom-domains-and-ssl?hl=en

我今天刚刚发现(截至2014-04-11)一个新的自定义域设置页面可从谷歌开发人员控制台:

1. 访问https://console.developers.google.com/project 2. 点击你的项目 3.在左键点击“App Engine” 4. 点击“设置”

好了!无需谷歌App账号即可配置自定义域!

如果你像我一样,在尝试添加“www”作为子域以使自己的域正常工作时看到了这条消息:

“已使用,请删除之前的。 先画地图。”

如果您的域使用谷歌应用程序,以上在其他答案中提到的过程略有变化。

现在你也必须这样做:

谷歌应用程序->服务设置->站点。点击“Web地址映射”,删除默认添加到Sites的“www”映射。

然后你可以为你的App引擎应用添加“www”子域

请看这个链接:

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

你可以在godaddy中重定向或屏蔽你的域名,但我不知道其他托管网站。看看这个链接

当你去“应用程序设置->添加域”它会要求选择登录帐户,可能你已经在gmail帐户,所以它也会显示gmail帐户,但你应该使用谷歌应用程序帐户,你已经映射了你的自定义域。