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

mooreds’s picture

Hi,

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.

maneesh_thakur’s picture

Hi 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

mapreferee’s picture

the 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.

pog21’s picture

@maneesh_thakur
Yes, override it in template.php (as per http://drupal.org/node/552934).