Page 1 of 1
Imagevue on CDN
Posted: 16 Jul 2012, 16:39
by andreamarucci
I'm currently using coppermine as my gallery with an addon that take all the pictures off a CDN (another server hosting the thumbs and the images).Since I would like to switch over Imagevue i would like to know if Imagevue can take the images off a CDN or if the images can only be in the same server.
Thanks
Re: Imagevue on CDN
Posted: 16 Jul 2012, 17:04
by mjau-mjau
You cannot currently have images hosted one place, and the gallery hosted another place. Actually, why would you? Why not then move the entire gallery to the CDN? That is what we have done:
https://www.photo.gallery/demo/x2/ is on
Cloudflare, and the PHP executes from our server of course, but the files and output (including images and SWF) is hosted on the cloudflare content delivery network.
For example, you can host the entire gallery at someserver.com, and then maybe you have anotherserver.com which is your actual website? Thats fine, you can just embed the imagevue2.swf some someserver into a page at anotherserver.
Of technical reasons, you cannot split the gallery parts PHP/images/swf onto different servers.
Why? First of all, because the server PHP can only read the files and execute commands if it can actually read the files/folders where it is hosted, which means it needs to be on the same server.
Re: Imagevue on CDN
Posted: 17 Jul 2012, 03:17
by andreamarucci
Thanks. Actually I would like to do that for bandwidth purposes. Since my gallery is visited quite a lot I would like that the images are served from another server so the bandwidth of my main server is not used.
Also my CDN is not a real CDN; it's just another domain I've registered on another hoster that I use to serve media files for my sites. I can host the gallery there but the problem is that this is another domain so my gallery would have another URL and I don't want to do that.
Simply put I've my gallery on
www.mydomain.com/gallery and my "CDN" is
www.mycdn.com. I would like that the URL of my gallery remains the same.
If you can explain how can I successfully embed the gallery (hosted on mycdn.com) on my actual server I'd appreciate it. Thanks!
Re: Imagevue on CDN
Posted: 17 Jul 2012, 04:43
by mjau-mjau
As mentioned, you cannot separate the gallery files across two servers because technically the PHP needs to be on the same server where all the files are. This means, the entire gallery needs to be hosted on the same server, although you could of course embed the imagevue.swf file from one server and embed it in a html document hosted on another server.
However, the CDN you are talking about is a bit old-school. These days, they use "clouds", and it is not unusual that a single host simply has its own transparent CDN. This means that one and same domain, might be delivering data from multiple servers located around the world, based on the website visitors location. This is obviously much more efficient.
Why not try cloudflare?
http://www.cloudflare.com
Easy to set up, and once run for some time, all your images and files will spread on their clusters cloud servers around the world, and act like a much more efficient CDN than simply a separate server to serve the files. Would save you a lot of bandwidth.
Re: Imagevue on CDN
Posted: 17 Jul 2012, 06:44
by andreamarucci
Cloudflare is good indeed but the problem is that my users are all from Italy (99,5%) and my server is in Italy so moving all the static files on Cloudflare could slower down the response time since they don't have servers in Italy. Probably this could save me some bandwidth but at the price of slowering down everything, don't you think?
I think that a good solution would be, as you mentioned, to host the gallery on the other domain and include the file.swf in a page hosted on my main server. If you can provide me some suggestion to do that I'll appreciate it...
Re: Imagevue on CDN
Posted: 17 Jul 2012, 06:54
by andreamarucci
I've used the embed example to test it and it work but I would like it to appear as full screen like you're just seeing it on the original server. Is it possible?
Re: Imagevue on CDN
Posted: 17 Jul 2012, 07:52
by andreamarucci
Nevermind I've used the index_example.html and it work. Thanks!
Re: Imagevue on CDN
Posted: 19 Jul 2012, 03:18
by Nick
You don't move anything to cloudflare, you just change dns to point to their server and they do the caching. Everything stays at your server. Try it, it's free and see if that will help.
Re: Imagevue on CDN
Posted: 19 Jul 2012, 04:06
by andreamarucci
Thanks Nik. I'll take Cloudflare in consideration since it seems a good thing but for this project I prefer to use my "poor man" CDN
