Amazon CloudFront CNAME

I am setting up Amazon CloudFront to distribute the contents of the S3 bucket and it works fine when I use xxxxxxx.cloudfront.net. Amazon gives me.

However, I want to use static.mydomain.com to access my files. I followed Amazon's instructions and added a CNAME record from static.mydomain.com to xxxxxx.cloudfront.net, and I also indicated that CNAME (static.mydomain.com) is in my CloudFront distribution properties.

However, I cannot access my files from static.mydomain.com.

I use MediaTemple, and static.mydomain.com only serves the default MediaTemple server page. When I request static.mydomain.com/myfile.css, it gives me "Sorry, invalid request."

Any idea?

+8
amazon amazon-cloudfront cdn cname
source share
1 answer

you need to add your static.mydomain.com domain to "Alternate Domain Names (CNAMEs)", also make sure your files have read access for everyone, in other words, your files are public.

+8
source share

All Articles