I've seen a lot of manuals about this question and especially AWS' official docs
- I created two buckets mydomain.com and www.mydomain.com.
-
I added bucket policy to mydomain.com:
{ "Version": "2012-10-17", "Statement": [ { "Sid": "AddPerm", "Effect": "Allow", "Principal": "", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::mydomain.com/" } ] }
-
I enabled "Enable website hosting" for mydomain.com and put index.html there. So I've got endpoint for it mydomain.com.s3-website-us-east-1.amazonaws.com which good in opening index.html.
-
I enabled "Redirect all requests to another host name" for www.mydomain.com to mydomain.com.s3-website-us-east-1.amazonaws.com. But according to AWS' official I should do redirect to mydomain.com. But it doesn't work for me, and my way of redirect does. Anyway now http://ift.tt/1Ha367x opens index.htm in mydomain.com.s3-website-us-east-1.amazonaws.com.
-
Mydomain registred with AWS route53, so I went there and created A Alias to s3-website-us-east-1.amazonaws.com exacly like in docs.
I have been waiting for 24 hours, but nothing changes... So I did everything from AWS' official docs but mydomain.com goes to nowhere... Help, please.
Aucun commentaire:
Enregistrer un commentaire