Jump to content

Media servers.....can't get this option to work correctly


Recommended Posts

I have been trying for a few days now to try and work out how to get the media server option to work to serve content from a cookieless domain, but have not had any success.

 

I have tried following Bruno's guide here, but it's not a complete guide, and he helpfully misses out that if you want to use the media server option, you will have to move all your product images to the media server also, which isn't very helpful when you have new products being added all the time.

 

I also have not been able to have CCC enabled at the same time as the media servers, as it stops the theme being created on the browser and just creates an un-templated layout.

 

I can't find any documentation on this option anywhere on the net.

 

Has anyone successfully managed to make this option work .

 

I would be interested in a response from one of the devs.

Link to comment
Share on other sites

Hello.

 

You don't have to copy anything to media servers if they are hosted at the same server.

 

What i've done (sure it's not the best way but it works):

  • Create 3 soft links to the presta folder
  • Create 3 virtual host in apache pointing to soft links
  • Create a directive on those 3 new virtual host to only allow JS/CSS/Images
  • Buy a wildcard SSL cert
  • Configure apache-ssl with VirtualDocumentRoot

Regards.

Edited by oka (see edit history)
Link to comment
Share on other sites

I have done all that apart from the ssl bit, as my site does not have an in the first place so there is no need.

 

Here is a run through of what I have done.

 

Created 3 sub-domains in my cpanel static1, static2, static3 and redirected them back to the main domain.

In preferences/performance add the sub-domains into the media server options.

 

With CCC options turned on the theme breaks and there is no layout, with CCC off the theme i fine, apart from images (not theme related image).

 

I have tried this with both my custom theme and the default theme.

 

Here is the site http://www.snowboarding-goggles.co.uk/

Link to comment
Share on other sites

Hi.

 

Your problem is:

 

 

wget -S http://static.purplegiraffe.co.uk/67808-106-grunge_big/roxy-captivate-1-snow-jacket.jpg
--2012-07-08 13:34:46--  http://static.purplegiraffe.co.uk/67808-106-grunge_big/roxy-captivate-1-snow-jacket.jpg
Resolving static.purplegiraffe.co.uk... failed: Name or service not known.
wget: unable to resolve host address `static.purplegiraffe.co.uk'

 

The problem is the DNS, it is not resolving your statics subdomains.

 

If you all ready created wait for the DNS names to get populated.

 

regards.

Link to comment
Share on other sites

Hmm, well if it is the dns, how is the template being parsed when that should be coming from the media servers too?

 

I also presumed that if the images weren't available on the media servers then it would revert back to the main domain for the content?

Link to comment
Share on other sites

Becouse part of your CSS is coming from this path:

 

<link href="/themes/newdragon/css/global.css" rel="stylesheet" type="text/css" media="all">

 

And it's not from static* domains.

 

Your Theme is not using media servers.

 

If i can't get resolve your static subdomains i will never get image/js or css from this domains ;)

 

Wait to DNS to populated and it will work.

 

Regards.

  • Like 1
Link to comment
Share on other sites

  • 5 weeks later...
×
×
  • Create New...