By Sunny on Saturday, 02 May 2015
Posted in Technical Issues
Likes 0
Views 1.2K
Votes 0
I've set up a S3 bucket and all my images/avatars are mapped to this bucket.
Now the images are being served from my S3 bucket instead of my server.

But i need to serve these images from Cloudfront instead of S3, as there are two major advantages of Cloudfront over S3.
1) Cloudfront is faster as it users edge location
2) Cloudfront is cheaper.
And as per amazon, S3 is meant for storage and cloudfront is meant for distribution

I've been googling for some time and i found this link: http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/MigrateS3ToCloudFront.html

But i cant make any headways on this.
Can you please guide me on how to achieve cloudfront serving of avatars.

In Jreviews cloudfront works flawlessly. I've set up a S3 bucket for jreviews, but jreviews has another setting wherein i can specify the cloudfront url for fetching content.

The work flow for jreviews is as follows
Jreviews uploads to S3 bucket (As per credentials)
S3 Bucket is mapped to a Cloudfront distribution in Amazon
Cloudfront URL is entered into the jreviews setting.

and all media files are served from cloudfront instead of S3.

regards
Hello Sunny,

I am sorry for the delay of this reply as it is a public holiday for us here in Malaysia. To be honest, I am not really sure if that could be possible but you should look at http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/MigrateS3ToCloudFront.html

Basically, most cdn would have the "pull technology" where these cdn providers would pull data from the respective sources. For instance, if you just configure cloudfront with your site, these items are automatically pulled by cloudfront when user access your site. The next time someone accesses your site, most of these resources would be loaded from cloudfront instead of the site. I believe this would be a similar setup with S3 and cloudfront just that your Joomla site isn't involved.
·
Monday, 04 May 2015 15:02
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Mark,
I just purchased Nonumber CDN for joomla and configured to load all images from a cloudfront url. Its working for all other components on the site except easysocial.

All Avatars and Cover photos etc.. are still being loaded from my S3 bucket instead of my cloudfront url
e.g. easyblog images are now loading from
http://CLOUDFRONTDOMAIN.cloudfront.net/images/blog_images/555/...

but easysocial images are being loaded from
http://MYBUCKETNAME.s3-ap-southeast-1.amazonaws.com/media/uploads/avatars/users/1112/...

In easysocial remote storage setting is have set all to S3 and entered credentials of AWS account and Bucket Name.
If i make Location to store avatar, files, Photes.. to localserver, still the images are served from S3.

can you please help me on this.

regards

Also noted that some language strings have been corrected in the latest update, but there still a lot more mess. If you wish i can take you through the errors in stream posts.
·
Wednesday, 06 May 2015 21:39
·
0 Likes
·
0 Votes
·
0 Comments
·
I was investigating further and i found out that CDN for joomla was uploading easysocial images to the cloudfront, but the same image is also uploaded to the S3 bucket by easysocial and easysocial overrides the cloudfront url with S3 url, so all Avatars,photos etc.. are loading from S3 instead of cloudfront. Hope you can help me with this.

Does easysocial storage setting store the S3 URL in database? or its done on the fly?

For stream errors: i'll open a new thread.

regards
·
Thursday, 07 May 2015 14:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Stackideas,
Any updates for me on the above thread?
regards
·
Friday, 08 May 2015 14:29
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sunny,

I'm really sorry that missed up this post thread, is it possible provide us with your Joomla backend, FTP access and AMAZON S3 access ?
·
Friday, 08 May 2015 20:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex,

Sorry got tied up with some other troubleshooting.

I've created a staging site for your review, Please find the login to admin section.

regards
·
Thursday, 21 May 2015 17:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hope you got the credentials of the admin panel.
regards
·
Friday, 22 May 2015 15:50
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Just echoing again;)
To breath life in this post and invite some attention

regards
·
Friday, 22 May 2015 22:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Arlex, hope you had time to look onto the site, of which the credentials i had attached as requested,
Awaiting your reply.
regards
·
Monday, 25 May 2015 16:28
·
0 Likes
·
0 Votes
·
0 Comments
·
anyone? please.
·
Monday, 25 May 2015 21:05
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello There,

Can someone please guide me on this thread, as i really want to reduce one DNS lookup and have all images from cloudfront instead of half from cloudfront & half from S3.

regards
·
Tuesday, 26 May 2015 16:53
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Sunny,

I am sorry we've missed this thread.

We will continue in your new thread instead.
·
Thursday, 28 May 2015 11:15
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post