使用GoDaddy的域名主机链接到Amazon S3网站 [英] Using GoDaddy Domain Hosting to link to Amazon S3 Website

查看:1156
本文介绍了使用GoDaddy的域名主机链接到Amazon S3网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我必须托管在GoDaddy.com某些领域。我试图避免支付托管服务,除了使用一个静态的Amazon S3页面(因为我不期望太多的流量在所有的这些网站)。我已经取得了一些成功,但不知道这是一个贫穷的解决方案...

So I have some domains hosted at GoDaddy.com . I am trying to avoid to pay for a hosting service, except for using a static Amazon S3 page (as I don't expect much traffic at all for these sites). I have had some success, but not sure if this is a poor solution...

我所做的domain.com的:

What I did for domain.com:

1)设置在GoDaddy的永久转发到www.domain.com

1) Set up permanent forwarding on GoDaddy to www.domain.com

2)删除所有DNS除了A地址到GoDaddy的IP,和WWW的亚马逊S3网站CNAME

2) Remove all DNS except for the A address to the GoDaddy IP, and a CNAME of www to the Amazon S3 site

它的工作原理,如果有人类型www.domain.com计划。它似乎工作好吗domain.com的了。但是,它似乎做302重定向,而不​​是301,甚至当我告诉GoDaddy的有它是一个永久的期待。我可以最终后藤谷歌网站管理员工具,并说,我想它使用www.domain.com,不过这似乎有点过分。

It works as planned if someone types in www.domain.com . It seems to work alright for domain.com too. However, it seems to do a 302 redirect instead of 301 even when I tell godaddy to have it be a permanent forward. I can ultimately goto Google Webmaster tools and say that I want it to use www.domain.com , however that seems a little excessive.

如何使这种解决方案更好地工作有什么建议?可能通过改变一些DNS设置或其他GoDaddy的选择,我不知道?

Any suggestions on how to make this solution work better? Possibly by changing some of the DNS settings or some other GoDaddy options that I don't know about?

推荐答案

您必须命名您的S3存储与您的域名,www.example.com确保你包括WWW。子域preFIX作为存储桶名称的一部分。

You must name your S3 bucket the same as your domain, "www.example.com" Make sure you include the "www." subdomain prefix as part of the bucket name.

设置你的水桶按照网站亚马逊的说明!请确保您输入了一个index.htm的文件名和权限下正确的桶策略设置。

Set up your bucket as a web site per Amazon's instructions!. Make sure you have an "index.htm" file name entered and the correct bucket policy setup under Permissions.

在Godaddy的DNS设置,使只有一个入口,设置主机WWW CNAME,指出,s3-website-us-east-1.amazonaws.com或什么S3域亚马逊用品你的水桶。你离开关http://www.example.com。标题中的URL,亚马逊用品。

Under Godaddy DNS settings make just one entry, set Host WWW CNAME, points to, "s3-website-us-east-1.amazonaws.com" or whatever s3 domain Amazon supplies for your bucket. You leave off the "http://www.example.com." heading in the url that Amazon supplies.

在转发/管理的最后一步是只向前您赤裸的域名example.com到www.example.com

The last step under Forwarding/manage is to "forward only" your naked domain name "example.com" to "www.example.com"

如果你没有正确的浏览器会显示你的网站为www.example.com您是否输入了WWW与否,当你输入的URL。

If you did it right your browser will display your site as "www.example.com" whether you entered the www or not when you entered the url.

注:您可以只着使用完整的斗URL以名称屏蔽你的水桶,但大多数网络爬虫不会看到您完整的网站,如果你这样做的和网络搜索会失败

NOTE: You could just Forward to your bucket using the complete bucket url with "name masking", however most web crawlers will not see your complete site if you do it that way and web searches will fail.

请务必等待至少30分钟测试你的修改前,通过各种手段清除缓存浏览器,否则将使用旧的地址,它从过去的回忆。

Be sure to wait at least 30 minutes before testing your changes and by all means clear your cache in your browser or it will use the old address that it remembers from the past.

这篇关于使用GoDaddy的域名主机链接到Amazon S3网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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