Problem with using dir in S3 bucket
-
I’ve identified a very simple and annoying issue with this plugin. Let’s say I have a S3 bucket serving multiple sites. I want each site to have its own folder in the S3 bucket. Ok, easy enough, I set PATH in Offload Media settings to
foldername/wp-content/uploads
Great, everything works fine. Now I create a CNAME with a cloudfront distribution. In the distribution settings, I set the custom domain to point to the folder in the bucket so that I don’t have the folder name in the image urls. So exampledomain.domain.com points to s3.bucket/foldername/
The intention is that if I visit exampledomain.domain.com/wp-content/uploads/img.img I access the image which is at s3.bucket/foldername/wp-content/uploads/img.img, but Offload Media plugin uses the s3 PATH setting in the CNAME also. There is no way to specific a s3 path for uploads, and then a different path for the CNAME, or to let the CNAME point to the correct S3 folder.
- The topic ‘Problem with using dir in S3 bucket’ is closed to new replies.