phoenix13

导航

 

http://docs.aws.amazon.com/AmazonS3/latest/dev/website-hosting-custom-domain-walkthrough.html#root-domain-walkthrough-before-you-begin

1. buy a domain from godaddy, for example: example.com

2. create 2 bucket in S3, one called "example.com", another called "www.example.com"

2.1 upload all files to bucket "example.com"

2.2 config "Static website hosting" for this bucket

2.3 config "Static website hosting" for bucket "www.example.com", this bucket should be empty.

so all request to "www.example.com" will be redirected to "example.com"

3. create a hosted zone in Route 53 with domain name "example.com"

3.1 download zone file from godaddy, and paste it in Route 53's import zone file.

3.2 set the bucket "example.com" in S3 as the Alias of Type A-IPv4 Address

4. copy the 4 nameserver from Route 53 to GoDaddy.

posted on 2015-09-16 09:09  phoenix13  阅读(272)  评论(0编辑  收藏  举报