Active
Project:
CloudFront
Version:
6.x-1.1
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2009 at 06:23 UTC
Updated:
22 Jan 2012 at 10:54 UTC
I've read the book page and the set up instructions, the only part I can't seem to get 100% right is the settings for imagecache when you see "Send to cloudfront" then you click "configure" and you see the three input boxes,
Bucket
Distribution URL
Unique Name
For the bucket, do I put the exact path like 'http://bucket_name.s3.amazonaws.com/images/large' or just 'http:/bucket_name.s3.amazonaws.com/'
And for the Distribution URL is it 'http://555556cvyictq2.cloudfront.net/images/large' or 'http://555556cvyictq2.cloudfront.net/'
the readme says 'http://images..com' and that confused me because I never set up a cname.
Comments
Comment #1
mooreds commentedHi,
The bucket name is just the bucket name (bucket_name), no need for the s3.amazon... stuff.
The distribution URL is just 'http://555556cvyictq2.cloudfront.net/'
When the processqueue scripts is run, it pushes your content to a known location on s3 and cloudfront, so you don't need to be more precise than that.
Comment #2
maneesh_thakur commentedHi All,
thanks for the information here.
I have configured cloudfront 1.1 on my drupal site.
I see the images are getting uploaded to the preset_# folders on my amazon s3 bucket. I have my distribution url deployed.
When I access my pages, I always see, image is being served from my server but not amazon cloudfront.
1. Where do we override the theme_imagecache function ?
Is it not template.php, i dont find any theme.php file here , present in the sites/all/themes folder.
I have followed the instructions given at http://drupal.org/node/552934
Any suggestions on what I am missing here
Thanks,
Maneesh
Comment #3
mapreferee commentedthe theme.php should be present in any one of the themes you installed. Those themes are usually stored in the path public_html/themes/
It works for me when I override the theme_imagecache function in the theme I disabled and did not set as default.
Comment #4
pog21 commented@maneesh_thakur
Yes, override it in template.php (as per http://drupal.org/node/552934).