samedi 26 septembre 2015

How Do I Mask the CDN Domain with My Own Domain Name? Is it Even Possible?

So i've been trying out cloudfront from AWS.

Why is the URL 'example.com' resolving to 'example.com.s3.eu-west-1.amazonaws.com' in the Address Bar? I've tried googling loads of questions with this problem but the fact that i'm not seeing any relevant answers is telling me i've configured it wrong.

If AWS are advertising whole-site delivery, surely the idea is that you always see http://ift.tt/1LTSuLQ] in the address bar!?

  • I've got an S3 bucket as my origin serving static content.
  • I've setup my DNS in Route 53 with an A-record ALIAS on the root domain name (example.com) pointing to my Cloudfront domain name.
  • I've added "example.com" and "www.example.com" as alternate CNAME's in my cloudfront distribution.

I now navigate to http://ift.tt/LWARzD, and it redirects to http://ift.tt/1LTSuLS. What I want to see is still "http://ift.tt/LWARzD" and all the CDN magic should happen behind the scenes to the end-user.

What am I doing wrong? Is what I'm trying to achieve possible?




Aucun commentaire:

Enregistrer un commentaire