6

我维护使用简单 App 引擎应用程序的 owon.ro 域。我也使用谷歌云 dns。

这些是 dns 记录:

  1. 带有 IP 地址的记录:
    owon.ro。->
    216.239.32.21
    216.239.34.21
    216.239.36.21
    216.239.38.21

  2. CNAME
    www.owon.ro。-> ghs.googlehosted.com。

还有一些 MX 记录。

问题是该应用程序可以从www子域访问,并且帮助部分指出这些 IP 地址应该在 A 记录中,以便裸域重定向到www,但它不起作用。

我也尝试使用 @ 通配符作为 A 记录,但这也不起作用。
如果您访问 owon.ro,您将看到一个 404 页面,但 www 子域有效。

我错过了什么吗?

谢谢

4

3 回答 3

5

感谢 Dan Cornilescu,最终找到了答案。

如果您使用 Google Apps,您可以设置将裸域重定向到www

如果没有,您将需要通过转到
控制台 > 应用程序引擎 > 设置 > 自定义域来执行这些步骤。

在这里,在第二步中,您必须将www指向应用程序(通过使用第二个选项)并单击添加。
然后通过选择第一个选项并再次单击添加将裸域指向它。

因此,如果我理解正确,您将使用www子域和裸域为应用程序提供服务,而不是像在 Google 应用程序案例中那样将裸域重定向到www 。

最后,我的自定义域选项卡看起来像这样

我的DNS 记录看起来像这样

于 2016-01-16T18:29:37.323 回答
2

步骤 5c 中建议的 DNS 操作(此处的文档)是不够的,您还需要将裸域实际添加到 GAE 配置中(除此之外www) - 步骤 5d。

5. Continue to the next step the Add new custom domain form, selecting the custom domain you want to point to your App Engine app:

    a. Refresh the console domain page so it will list the domains properly.
    b. If you want to use a subdomain, such as www, use the second option (http://www.example.com);
    c. If you want to use a naked domain, use the first option to specify a naked domain (such as http://example.com).
    d. Click Add to create the desired mapping.
于 2016-01-16T18:09:47.773 回答
0

要链接裸域,以便在您不使用 appengine 时它​​指向 www,您只需添加“A”记录和指向 Google ips 的“@”记录,它们看起来像这样:

  A 300 
35.232.62.127

@ A 300 
216.239.32.21
216.239.34.21
216.239.36.21
216.239.38.21
于 2018-12-29T15:24:22.560 回答