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]/mediaThat 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?
The topic ‘origin path for cloudfront’ is closed to new replies.