redirect - S3 static site hosting with my domain: why aws manual doesn't work for me? -
i've seen lot of manuals question , aws' official docs doesn't work me , cann't understand why.
- i created 2 buckets mydomain.com , www.mydomain.com.
i added bucket policy 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" mydomain.com , put index.html there. i've got endpoint mydomain.com.s3-website-us-east-1.amazonaws.com in opening index.html.
i enabled "redirect requests host name" www.mydomain.com mydomain.com.s3-website-us-east-1.amazonaws.com. according aws' official should redirect mydomain.com. doesn't work me, , way of redirect does. anyway www.mydomain.com.s3-website-us-east-1.amazonaws.com opens index.htm in mydomain.com.s3-website-us-east-1.amazonaws.com.
mydomain registred aws route53, went there , created alias s3-website-us-east-1.amazonaws.com exacly in docs. have been waiting 24 hours, nothing changes...
mydomain.com goes nowhere... help, please.
the basics of doing seem right; however, suspect missed step , hard tell without seeing actual records/configs.
for example, if site static , on cloudfront, make sure set 'alternate domain name' in cloudfront mydomain in addition pointing domain there.
also, helpful know if route53 entry resolving address not responding, or if route53 domain not resolving @ all. that, nslookup on mydomain , post results.
also, see these, might help: http://docs.aws.amazon.com/amazoncloudfront/latest/developerguide/cnames.html
http://docs.aws.amazon.com/route53/latest/developerguide/resource-record-sets-values-alias.html
Comments
Post a Comment