Author
|
Message
|
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?
- Try looking into Squid
- Also try reading O'Reilly's "Server Load Balancing" book. A great resource. And probably the most effective if not most efficient way.
- Another way is to change/extend ezimage by loading each image with a random DNS from a list of DNS's. Consider the list of DNS names: [ images1.mydomain.com, images2.mydomain.com,images3.mydomain.com,images4.mydomain.com ]. Although each DNS points to the same IP, I think the browsers don't ask whether it's the same IP they just send the request and load the content if available. (I would research this).
- There are many ways to skin a cat. (Not that I would.)
Hope this Helps
Brandon Chambers
[email protected]
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
|
Brandon Chambers
|
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.
Brandon Chambers
[email protected]
blog: http://blog.divdesigns.com
Granite Horizon / http://granitehorizon.com
|
H-Works Agency
|
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
EZP is Great
|
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
|
Marko Žmak
|
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.
--
Nothing is impossible. Not if you can imagine it!
Hubert Farnsworth
|
Jarosław Heba
|
Wednesday 08 June 2011 2:45:33 am
see media_url operator >> http://projects.ez.no/novenutils
|