Title: origin path for cloudfront
Last modified: August 30, 2016

---

# origin path for cloudfront

 *  [tiredoframen](https://wordpress.org/support/users/tiredoframen/)
 * (@tiredoframen)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/origin-path-for-cloudfront/)
 * I love this plugin so much!
 * I am trying to connect it with my cloudfront account.
 * The s3 bucket works just fine.
 * I don’t want to make a separate bucket for all my media. Instead I want to make
   a folder in my bucket the origin for my cloudfront distribution.
 * My Cloudfront Settings↓
    My origin Domain name: [my bucket] And the origin path:/
   media So the origin domain name and path: [my bucket]/media
 * That is where I want my files to be uploaded to be retrieved by cloudfront.
 * On the WP S3 Offload Plugin Settings, when I set the domain as the cloudfront
   URL, there is a problem.
    When I upload a media file, the file gets placed in
   my bucket’s root directory, not in the /media directory I specified as the origin
   domain in my cloudfront settings.
 * If I set the domain as the s3 bucket URL with the /media path, there is no problem.
   
   The media files get uploaded into that directory.
 * Now, my files are being uploaded to [my bucket]/ and my cloudfront is referencing[
   my bucket]/media, so the CDN is trying to pull files from a directory where they’re
   not being uploaded.
 * How can I fix it so that my uploads are being uploaded to the directory that 
   my cloudfront is trying to retrieve them?
 * [https://wordpress.org/plugins/amazon-s3-and-cloudfront/](https://wordpress.org/plugins/amazon-s3-and-cloudfront/)

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [A5hleyRich](https://wordpress.org/support/users/a5hleyrich/)
 * (@a5hleyrich)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/origin-path-for-cloudfront/#post-6341407)
 * I believe that your WP Offload S3 settings are incorrect. They should be:
 * **CloudFront or custom domain**
    d16rsdfdmcyx14r.cloudfront.net (domain, without
   the ‘/media’ directory)
 * **Path**
    media/wp-content/uploads

Viewing 1 replies (of 1 total)

The topic ‘origin path for cloudfront’ is closed to new replies.

 * ![](https://ps.w.org/amazon-s3-and-cloudfront/assets/icon-256x256.jpg?rev=1809890)
 * [WP Offload Media Lite for Amazon S3, DigitalOcean Spaces, and Google Cloud Storage](https://wordpress.org/plugins/amazon-s3-and-cloudfront/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amazon-s3-and-cloudfront/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/)
 * [Active Topics](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amazon-s3-and-cloudfront/reviews/)

## Tags

 * [CloudFront](https://wordpress.org/support/topic-tag/cloudfront/)

 * 1 reply
 * 2 participants
 * Last reply from: [A5hleyRich](https://wordpress.org/support/users/a5hleyrich/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/origin-path-for-cloudfront/#post-6341407)
 * Status: not resolved