如何将裸域转发到 Google 应用托管网站的 www.domain

发布于 2024-08-17 05:19:25 字数 726 浏览 1 评论 0原文

我正在将一些网站从我自己的服务器移植到 Google (GHS)。我一直使用 ZoneEdit 来管理我的 DNS 需求,并且在过去 - 错误或正确 - 配置它以便:

domain.comwww.domain.com 指向:<我已知的 ip 地址>

使用 www 子域名一切正常,它 (www.domain.com) 解析为 ghs.google.com(通过 CNAME 条目)并显示该站点。

但是,如果我尝试访问裸域 (domain.com),FF 表示无法建立连接。我认为这是因为我的 DNS 配置不再有 A IP 地址条目。

我正在考虑将任何 URL 从 domain.com 转发到 www.domain.com,尽管我认为 ZoneEdit 可能不推荐它,因为我告诉它只转发 < code>http://domain.com 并保留 http://www.domain.com 不变(即配置 CNAME)。

我处理这件事的方式是最好的吗?

请指教。

I am in the process of porting some sites from my own server to Google (GHS). I've always used ZoneEdit to manage my DNS needs and in the past - wrongly or rightly - configured it so that:

domain.com and www.domain.com pointed to: <my known ip address>

With the www sub-domain all is fine and it (www.domain.com) resolves to ghs.google.com (via a CNAME entry) and the site is displayed.

However, if I try and reach the bare domain (domain.com) FF states it is unable to establish a connection. I assume this is because my DNS configuration has no A ip-address entry for it anymore.

I was considering forwarding any URL from domain.com to www.domain.com, although possible ZoneEdit is not recommending it I think because I telling it to only forward requests for http://domain.com and leave http://www.domain.com as it is (i.e CNAME configured).

Am I handling this the best way?

Please advise.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

始终不够爱げ你 2024-08-24 05:19:25

您还可以为问题 777:正式支持 GAE 应用的裸域投上一票 请求 Google 支持裸域。这样,您还可以使用 http://domain.com 作为 App Engine 应用程序的有效地址。

You could also add your vote to Issue 777: Officially Support Naked Domains for GAE Apps to ask Google to support naked domains. That way you would also be able to use http://domain.com as a valid address for your App Engine application.

一曲琵琶半遮面シ 2024-08-24 05:19:25

根据网址转发< /a> 在 Google Apps 帮助中,将您的裸域转发到 www 域是最好的处理方法。

然后,您将 www 域的 CNAME 记录保留为指向 ghs.google.com,就像您已经完成的那样。

According to the article on URL forwarding in the Google Apps Help, forwarding your naked domain to the www domain is the best way to handle it.

And then you leave the CNAME record for the www domain to point to ghs.google.com, as you already have done.

冰火雁神 2024-08-24 05:19:25

您还可以查看帖子 App Engine 上的“裸”域 作者:尼克·约翰逊

You can also look at the post 'Naked' domains on App Engine by Nick Johnson

酒浓于脸红 2024-08-24 05:19:25

现在 Google Apps 中有一种直接的方法可以做到这一点。

它位于 Google Apps >域设置>域名

https://www.google.com/a/cpanel/您的网站.com/DomainSettingsDomains

必备条件:您的“A”记录应指向 Google 服务器。

它是如何运作的?

  1. 用户输入 yourwebsite.com
  2. DNS 将其发送到 A 记录中提到的服务器
  3. (Google 的主机服务器),获取域名并
    重定向到 www.yourwebsite.com(或您的子域/链接)
    指定)
  4. 用户到达 www.yourwebsite.com

从那里你知道......

Now there is a direct way within Google Apps to do this.

It is located in Gooogle Apps > Domain Settings > Domain Names

https://www.google.com/a/cpanel/yourwebsite.com/DomainSettingsDomains

Requisite : Your 'A' Records should point to the google server.

How it works?

  1. User types yourwebsite.com
  2. DNS sends it to the server whose IP is mentioned in the A Record
  3. That server (Googles host server), takes the domain name and
    redirects to www.yourwebsite.com (or the sub-domain / link you
    specify)
  4. User reaches www.yourwebsite.com

From there you know ...

烏雲後面有陽光 2024-08-24 05:19:25

Google Apps 中的裸 www 重定向已损坏,或者至少对于我的某些应用程序而言是这样。如果 Google Apps 使用 eNom,则重定向可以正常工作,但如果使用 GoDaddy,则不会转发路径(例如 domain.com/this/is/path 将重定向到 www.域名.com)。修复方法是使用第 3 方 DNS。

The naked to www redirection in Google Apps is broken, or at least it is for some of my apps. If Google Apps uses eNom, the redirection works properly, but if it uses GoDaddy, it will not carry forward the path (e.g. domain.com/this/is/path will redirect to www.domain.com). The fix is to use 3rd party DNS.

兮子 2024-08-24 05:19:25

我认为现在 Google Apps 具有转发裸域的内置功能。您只需转到 Google Apps 管理面板中的“域设置”选项卡即可。单击“域名”子选项卡。输入将您的裸域转发到的目的地。然后,您对 DNS 进行更改,将您的域的 A 记录添加到 Google 提供的 IP。就是这样。

I think that now Google Apps has a built-in feature for forwarding of naked domains. You just go to "Domain Settings" tab in Google Apps management panel. There you click "Domain Names" sub-tab. Enter the destination where to forward your naked domain. Then you make changes to DNS, adding A record for your domain to Google provided IP. That's it.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文