我如何转发domain.com到www.domain.com在GoDaddy的为S3托管网站? [英] how do i to forward domain.com to www.domain.com at godaddy for s3 hosted site?

查看:269
本文介绍了我如何转发domain.com到www.domain.com在GoDaddy的为S3托管网站?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有:

1)报名参加了一个AWS帐号
2)建立桶为domain.com和www.domain.com
3)在属性中启用网站设置为每个域
3)两个域设置桶政策
4)创建此CNAME记录:
WWW> www.domain.com.s3-website-us-east-1.amazonaws.com

1) signed up for an aws account
2) set up buckets for domain.com and www.domain.com
3) enabled website settings in properties for each domain
3) set bucket policies for both domains
4) created this cname record:
www > www.domain.com.s3-website-us-east-1.amazonaws.com

当用户进入到www.domain.com现在,他们看到的索引页,和一切工作就好了。当他们到domain.com,没有什么,但darknenss和沉默,因为页面只是不会加载(并给出了连接超时的错误。)

Right now when a user goes to www.domain.com, they see the index page, and everything is working just fine. When they go to domain.com, there is nothing but darknenss and silence because the page just doesn't load (and gives 'connection timeout' error. )

我要的是domain.com转发到www.domain.com因此,无论什么类型的用户在浏览器中,他们看到了位于www.domain.com现场。

What I want is for domain.com to forward to www.domain.com so that no matter what the user types in the browser, they see the site that is located at www.domain.com.

  • 如何使这项工作?
  • 我可以添加一些在GoDaddy的纪录,使domain.com重定向到www.domain.com?
  • 请我一定要得到一个静态IP使用S3,使这项工作?我一直在阅读有关从EC2弹性IP,但我不理解我怎么可以设置它,或者它是如何工作的,因为我没有使用EC2都为我的网站。

请帮助一个新手了!

推荐答案

我觉得用户去爸爸的回答是正确的,但我会写了,我跟着来获得转发为我工作更简洁的说明。我不知道为什么别人都暗示wwwizer,由于GoDaddy的使用301重定向过(但也许它并没有使用?)。顺便说一句,这个答案是不特定于Amazon的S3 - 它只是需要你有www的CNAME记录设置正确

I think user Go Daddy's answer was correct, but I'll write up more succinct instructions that I followed to get the forwarding to work for me. I don't know why others are suggesting wwwizer, because GoDaddy uses a 301-redirect too (but maybe it didn't used to?). By the way, this answer isn't specific to Amazon's S3 -- it simply requires you have the "www" CNAME record set correctly.

  1. 登录到GoDaddy.com。
  2. 点击我的帐户
  3. 点击的的产品,请点击启动按钮旁边的域。
  4. 域信息部分,你应该看到转发:关。点击旁边的管理链接吧。
  5. A 转发和掩蔽对话框应该拿出。在转发DOMAIN.COM到输入www.domain.com。
  6. 点击确定按钮。
  1. Login to GoDaddy.com.
  2. Click on My Account.
  3. Click on the Domains product, and click the Launch button next to your domain.
  4. In the Domain Information section you should see "Forwarding: Off". Click the Manage link next to it.
  5. A Forwarding and Masking dialog box should come up. Under Forward DOMAIN.COM to enter "www.domain.com".
  6. Click the OK button.

转发踢我,也许半小时之内。

The forwarding kicked in for me within maybe half an hour.

要注意,在该对话框中你可以改变它转发以http://或https://开头。我只需要它的http://,所以我不知道,如果GoDaddy的将上转发SLL和非SSL的同时

To note, in the dialog box you can change it to forward either "http://" or "https://". I only needed it for "http://", so I'm not sure if GoDaddy will forward both SLL and non-SSL at the same time.

另外,如果你很好奇,如果你点击高级选项转发和掩蔽对话框,它应该被默认到仅向前并重定向类型设置为永久着你的域(这是什么给了301重定向)。

Also, if you're curious, if you click on the Advanced Options link in the Forwarding and Masking dialog box, it should be defaulted to "Forward Only" and have the redirect type set to permanently forward your domain (which is what gives the 301-redirect).

这篇关于我如何转发domain.com到www.domain.com在GoDaddy的为S3托管网站?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆