Change Image Hosting

Hello.



Is it possible to have a separate (different) host for the images on my site?



I can set up a “reverse proxy” for images on my site (a reverse proxy means a separate server that will cache files and serve them. It’s more efficient than the caching, since it’s done by a server tuned for server static files. It also makes the load on the main server much lower [2-3 hits vs. ~40]).



They way it works, is that I would upload the images to the same folder and FTP location as the rest of the pages, and the reverse proxy will take it from there.



In other words, if my site is www.ecommerce.com, where I have installed CS-Cart and uploaded all images. But if you go to images.ecommerce.com, it will show you the same files from www.ecommerce.com, but will cache it for, let’s say, 1 day.



So, after this long explanation, is it possible to change the [COLOR=“Red”]{$images_dir}[/COLOR] that are in the templates, to use a different host?

I’m not sure that this would solve anything, it’s possible the site would perform even slower requesting information from 2 servers versus 1, whenever a computer has to access data off an external system it is always slower then accessing the files directly on localhost, if your worried about the server taking the hits the best option would be to get a more powerful server…

[quote name=‘snorocket’]I’m not sure that this would solve anything, it’s possible the site would perform even slower requesting information from 2 servers versus 1, whenever a computer has to access data off an external system it is always slower then accessing the files directly on localhost, if your worried about the server taking the hits the best option would be to get a more powerful server…[/QUOTE]



The first and probably most effective recommendetion for a faster site, is to put the images on a different site (See Firefox/Firebug addons YSlow from Yahoo and Page Speed from Google).

[quote name=‘Arius’]The first and probably most effective recommendetion for a faster site, is to put the images on a different site (See Firefox/Firebug addons YSlow from Yahoo and Page Speed from Google).[/QUOTE]

HI

Could you find out a way to store images on external server or on subdomain?

The reason is for parallel downloading i guess. i tried it long ago but both servers has to has SSL for images to work under checkout pages or SSL pages otherwise it gives an SSL error. As if the images are not on the secure server then you know you can not display on a secure page. you can but you dont want your customers to see add execute certificate bla bla bla…

[quote name=‘silverbestbuy’]The reason is for parallel downloading i guess. i tried it long ago but both servers has to has SSL for images to work under checkout pages or SSL pages otherwise it gives an SSL error. As if the images are not on the secure server then you know you can not display on a secure page. you can but you dont want your customers to see add execute certificate bla bla bla…[/QUOTE]



secure server is not an issue, but how to do that?

Hi,



I recently set an separate image service up for part of my site. Check it out at [URL=“Town Street Maps”]http://www.landsat.com/street-maps/[/URL] Yes it improve speed, it is called a content delivery network (CDN).



Try Amazon Web Service to setup a content delivery network (CDN).



Here are step by step directions. It is very easy.



Amazon S3 setup

[url]http://www.hongkiat.com/blog/amazon-s3-the-beginners-guide/[/url]



Amazon CloudFront setup

[url]http://www.hongkiat.com/blog/amazon-cloudfront-how-to-setup-cloudfront-to-work-with-s3/[/url]

We have used a service called SteadyOffload to accomplish this ([URL=“http://www.steadyoffload.com/”]http://www.steadyoffload.com/[/URL]). It’s really easy to implement. You don’t even have to upload your images. The first time someone goes to the page it automatically caches it on their server and then serves it up from there all subsequent visits.



The way it works is you add a single javascript call in the header, and then change any of the image links you want to “offload” to . So for example you can just change the template for the image in the catalog view, and your product pages. All other template images will be served from your local site.



It’s a paid service and might not be right for you. But I just thought I’d let you know about it.

how can I get the images folder to sync to s3 bucket?



ie if my client updates a new product the image will be on the original server, how can this be synced to the s3 bucket?



I have the cloudfront system working off the bucket ie

images.domain.com



which part of the config file needs to be adjusted to point the images to

images.domain.com

instead of

www.domain.com/images



Thanks

Stephen

We will be releasing the Content Delivery Network Addon in ~10 days - Sno

Is this still gonna happen?



I can’t see it available to buy

you can also use maxcdn works as a charm