AWS – How to Configure Route 53 for Domain Forwarding with Masking

amazon s3amazon-route53amazon-web-servicesdomain-name-system

(I apologize in advance for not having enough technical depth to ask this intelligently)

I currently have an AngularJS static website hosted on AWS S3. I'm using AWS Route 53 for DNS. I'm able to successfully access the site through the browser (e.g. example.com) like this:

  • example.com
  • example.com/siteA
  • example.com/siteB

What I want to achieve is to register exampleA.com and exampleB.com to get to this:

  • example.com (as it currently is)
  • exampleA.com (points to the siteA content without showing "/siteA" in the URL)
  • exampleB.com (likewise points to /siteB)

I've done this before with GoDaddy's domain forwarding with masking, but I can't figure out how to do this with Route53 and I can't find it in their docs. And since this is a static S3 website I cannot add a server to the mix to do the routing there (at least that's my understanding).

Thanks!

Best Answer

Amazon Route 53 cannot do this. Route 53 is a DNS service and masking is not a function of DNS.

Since the website is already stored on Amazon S3, simply create 2 buckets, one for exampleA.com and one for exampleB.com, each holding their own sites without the subfolders.