Amazon CloudFront Now Allows Directory Path as Origin Name

Posted on: Dec 16, 2014

When you specify the origin for a CloudFront distribution - the Amazon S3 bucket or the custom origin where you store the original version of content - you can now specify a directory path in addition to a domain name. This makes it easier for you to deliver different types of content via CloudFront without changing your origin infrastructure.

For example, if you're using an Amazon S3 bucket as your origin, you can specify bucket-name.s3.amazonaws.com/production instead of just bucket-name.s3.amazonaws.com. Alternatively, if you have a custom web server with different content in different directories on the server, you can use the same physical server to serve multiple types of content via multiple CloudFront cache behaviors or distributions.

You can use the AWS Management Console or the CloudFront API to add a directory path to your origin domain name on your existing CloudFront distributions as well as any new distributions you create in the future. There are no additional charges for using this feature. To learn more about this feature, please visit the Amazon CloudFront Developer Guide.

We also would like to invite you to join our upcoming "CloudFront Office Hours webinar" on Jan 21st 2015 at 10:00AM PT. You can register for this webinar by visiting our Webinars & Videos page and clicking the registration link under the Office Hours Series. Be sure to bookmark this page and check back here frequently for new webinars and webinar recordings.