Jump to content
thirty bees forum
  • 0

Media Servers for dummies


Question

Posted

Hello again,

I'm also taking a look at the Media Server Feature right now, but actually...I don't see any effects. So can someone explain me nice and slow what I have to do? (:

  • I created a subdomain (lets call it "static.domain.com")
  • the subdomain's root-folder is the same as the main-domain's = "/httpdocs"
  • the subdomain has a SSL certificate, as well
  • I added the subdomain in the backoffice at advanced parameter > performance > media server #1
  • clicked on "save"

Well...and then?

I don't see any effects :D Google pagespeed, gtmetrix etc. still say it's missing...

18 answers to this question

Recommended Posts

  • 0
Posted

Did you clear cache?

This feature doesn't have big impact. The http requests are still routed to the same server, the only difference is that these requests don't contain cookies. Which can save few hundreds bytes per request.

It would be much more interesting if there was a mechanism to transfer static context to different server (say amazon s3), and when everything is synced then turn this media server automatically. It's probably hard to implement, because the static context in tb is not that static :)

  • 0
Posted

also, if your server is on 2-level domain such as http://domain.com, then it will have no effect if you set up static server on subdomain, ie static.domain.com. Cookies will be shared. Cookieless request will be only if your primary server is on subdomain as well, ie www.domain.com

  • 0
Posted

After my lunch break I see some changes. So the media server seems to do at least something.

It looks like my fonts aren't loading now. So for some reason the folder themes/themeXY/fonts can't be read...? Images, css and js are working, as far as I can see.

  • 0
Posted

Hmm, this was already set up.

I'm wondering if just the fonts-folder is not copied correctly to the media server So the path in the CSS file points to a folder that is empty/doesn't exist.

right now it is: url('/themes/theme1366/fonts/exo-2-v4-latin-200.eot')

  • 0
Posted

Translated Firefox says something like:

Cross-Origin Request Blocked: The Same-Source Rule prohibits reading the external resource at https://static.domain.com/themes/themeXY/fonts/fontawesome-webfont.woff2?v=4.5. 0th (Reason: CORS header 'Access-Control-Allow-Origin' missing).

But the CORS-stuff is already included to the .htaccess file...?

  • 0
Posted

I have the same problem. Are you using EnginTron and Nginx as a reverse proxy? There is apparently an issue where Nginx creates its own Access-Control-Allow-Origin and regardless of what you do in htaccess, it ends up creating a situation where one domain is blocked from loading content. Still trying to figure that one out.

  • 0
Posted

Well, my hosting doesn't seem to support the proper settings. Can anyone think of some kind of workaround for the font folder? This one seems to be the only one that causes trouble.

Yes, even though you think media servers might be pointless...I just want to see the difference (:

  • 0
Posted

If you have cpanel hosting, you can make sub domains and set the document root to the same root as your site.

As for thinking they might not be better, that is not true. Its science, they are not better anymore.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...