Next: , Previous: , Up: Working with Distributions   [Index]


Using Custom URLs

“Using Custom URLs for Files by Adding Alternate Domain Names (CNAMEs)”

https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html

In CloudFront, an alternate domain name, also known as a CNAME, lets you use your own domain name (for example, ‘www.example.com’) for links to your files instead of using the domain name that CloudFront assigns to your distribution. Both web and RTMP distributions support alternate domain names.

When you create a distribution, CloudFront returns a domain name for the distribution, for example:

d111111abcdef8.cloudfront.net

When you use the CloudFront domain name for your files, the URL for a file called /images/image.jpg is:

http://d111111abcdef8.cloudfront.net/images/image.jpg

If you want to use your own domain name, such as ‘www.example.com’, instead of the cloudfront.net domain name, you can add an alternate domain name to your distribution, like ‘www.example.com’. You can then use the following URL to view /images/image.jpg:

http://www.example.com/images/image.jpg

Next: , Previous: , Up: Working with Distributions   [Index]