简体   繁体   中英

Redirecting route53 purchased domain to s3 bucket?

I've just purchased a domain from Route 53 and created corresponding buckets in AWS s3. I've followed the instructions from: Example: Setting Up a Static Website Using a Custom Domain .

Let's say my custom domain is called customdomain.com .

I've created customdomain.com and www.customdomain.com buckets in s3 and allowed static website hosting on customdomain.com and enabled redirecting from www.customdomain.com to the customdomain.com bucket.

When I enter the endpoint for customdomain.com it works just fine, meaning my bucket policies are working correctly.

Next, in Route 53, I've set up Hosted Zone for customdomain.com .
I've also created a record set in that hosted zone with the name:
customdomain.com , type A, aliasing to customdomain.com's endpoint (which I chose from the dropdown menu). I left everything else as default then saved it. I added the record for www.customdomain.com but had it alias to customdomain.com

When I try to access customdomain.com, Chrome states that the site can't be reached.

Did I miss a step somewhere or does it take time for my site to be up due to DNS propagation or something?

Fixed it.

Apparently, the domain's name servers weren't the same as my hosted zone's name servers

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM