Forums / Install & configuration / Concurrent browser requests : Modify ezimage hostname
H-Works Agency
Tuesday 07 June 2011 5:01:31 am
Hello !
How is it possible to modify ezimage hostname to tell this operator to use a different hostname for media ? For exemple media.domain.com instead of siteaccess hostname ?
Thanx in advance.
EZP is Great
Brandon Chambers
Tuesday 07 June 2011 1:06:11 pm
probably.. But is this the best approach with what you're trying to accomplish?
Hope this Helps
Brandon Chambers brandon@granitehorizon.com blog: http://blog.divdesigns.com Granite Horizon / http://granitehorizon.com
Marko Žmak
Tuesday 07 June 2011 3:24:47 pm
Try this one:
Also, I remember someone somewhere mentioning that something similar can be done with ezjscore extension (for images called from CSS stylesheets).
-- Nothing is impossible. Not if you can imagine it! Hubert Farnsworth
Tuesday 07 June 2011 3:54:23 pm
Haha.. There's literally sooo many different implementations. Anyone up for an exhaustive testing of routes?
Also..I remember using GET is slightly faster (using 1 less packet for transmission) than an actual AJAX call (Check Yahoo's website performance howto) so that route could be better.
Wednesday 08 June 2011 12:18:13 am
Ok thank u for that i will dig into the ezimage operator to see what can be done.
In fact i am looking for a solution which avoid changing anything in the templates because ezimage is spreaded everywhere.
What would be nice is having a custom hostname for media in site.ini or image.ini
Damien Pobel
Wednesday 08 June 2011 1:45:38 am
Hi,
I wrote a blog post on this subject lately : http://pwet.fr/blog/how_to_split_components_across_domains_with_ez_publish
For images in stylesheets, you can configure ezjscore to use an alternative hostname.
But this topic is on images linked with ezimage and unfortunatelly there's no out of the box solution. You can override the ezimage template operator if you're using eZ Publish 4.4 or newer.
Cheers
Damien Planet eZ Publish.fr : http://www.planet-ezpublish.fr Certification : http://auth.ez.no/certification/verify/372448 Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish
Wednesday 08 June 2011 1:58:22 am
I would definitely suggest you to give the xrowcdn extension a try...
It has implemented an output filter that rewrites all the urls in your eZP generated html. Also if you take look at this:
you can see that you can even define your own rules for the urls that will be rewriten, and define for each rule (or set of rules) which cdn server should be used.
It looks like a pretty handy tool that sounds like exactly what you need.
Jarosław Heba
Wednesday 08 June 2011 2:45:33 am
see media_url operator >> http://projects.ez.no/novenutils