• 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/

Viewing 1 replies (of 1 total)
  • Plugin Contributor A5hleyRich

    (@a5hleyrich)

    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.