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?
amazon amazon-cloudfront cdn cname
Jonathan roy
source share