1 bradwest May 01, 2010 21:15
3 bradwest May 06, 2010 18:39
This is totally tripping me out, Besides searching the web. I have asked TinyCDN, my host, my other host and no one can tell me how to connect a b2evolution blog up to the content delivery network. I am beginning to wonder if ti ts even possible or if what I'm trying to accomplish is even real.
I know other people are using content delivery networks. Can someone at least tell me I'm crazy so I can move on with my life?
4 tilqicom May 06, 2010 19:03
it does not make sense to use cdn for your blog softwares core files.. even if you convinced yourself it's a good idea; well it's actually not.
but you can try putting the 'resources' b2 uses /*template files, js scripts etc*/ on a cdn, if you want to make your blog load faster, that's the idea right? hosting your index.php would not make your web page load faster than one thousand of a second.just dont touch the core function files, and feel free to put the rest on a cdn
5 bradwest May 07, 2010 02:02
Thanks tilqicom for your responce,
I do realize that pitting static files on the cdn template files, js scripts, images etc is the only thing that really matters for loading.
But the issue here is how to connect my site to the CDN I know I need to connect an additional Cname along with a link to my account.
I have a "Simple DNS Zone Editor" on my Cpanel I am having issues getting it to take my info. Although my host has been pretty good to this poing they seem stumped also.
My question is how to connect the two Site to CDN?
it seems to be the misery.
6 tilqicom May 07, 2010 08:29
i am not following.. so your hosting company does provide a cdn, but neither you or them know how to use it, is that it ?
7 yabba May 07, 2010 09:52
You can move all your rsc files to wherever you like, just change the setting in /conf/_advanced.php to reflect the new url
/**
* Location of the RSC folder.
*
* Note: This folder NEEDS to by accessible through HTTP.
*
* @global string $rsc_subdir
*/
$rsc_subdir = 'rsc/'; // Subdirectory relative to base
$rsc_path = $basepath.$rsc_subdir; // You should not need to change this
$rsc_url = $baseurl.$rsc_subdir; // You should not need to change this
Only bit you need change is the url
If your skins style.css uses any of the rsc/css files then you'd need to update the @imports to reflect the new url as well
Alternatively, change your <base> tag to point to wherever and hope like hell it works ;)
¥
8 bradwest May 17, 2010 05:44
tilqicom wrote:
i am not following.. so your hosting company does provide a cdn, but neither you or them know how to use it, is that it ?
You are o-so correct (it is actually a 3rd party cdn called tinycdn, they have no documentation or real support.
I have learned allot of things but server side is not a strung point for sure. What I needed to do is get my head wrapped around what was actually happens between the site and the CDN. I was making a bigger deal out of the whole deal.
Yabba ~ you are awesome as always! That is way too easy Thanks
While we are in the /conf/_advanced.php do I need to add code to turn on Gzip caching? I believe I looked the other day quick and didn't see anything to enable that feature.
Thanks as always you are all great!
Brad West
9 bradwest May 18, 2010 03:28
Update: Yabba gave me great direction. By directing the rsc to the cdn it took some of the load off, I had to redirect some of the images directly from the skin. I do have some other things i need to tweak on but all is good.
This is the site http://dogsaccessoriesblog.com/
It was loading at about 16 to 18 seconds before I started rebuilding and compressing. Pingdom.com is telling me it is now loading at just over 5 seconds. It's a start.
So Yabba you had to say it.
Alternatively, change your <base> tag to point to wherever and hope like hell it works Wink
So well knowing the outcome I had to try it. Even though I loaded the whole site to the CDN last week just because I can delete what I don't need, keep what I'm using with 500mgs of storage I'm not cramped.
Changing the <base> tag is not recommended, having tried it I can say though it is fun and entertaining. Highly recommended if you are board and looking for great entertainment!
10 yabba May 18, 2010 17:44
Glad you enjoyed the ride ;)
It is possible to move all your skin stuff (css/js/img) to your cdn as well, but you'd need to edit all references in each and every file to your cdn of choice ;)
¥
11 bradwest Jun 07, 2010 20:24
Yes it's kind of a labor intense process. I have been picking away at it when I have time.
Thanks for the help Yabba.
You really are the best
Brad
12 yabba Jun 07, 2010 20:34
I know, but modesty stops me declaring that to the world :roll:
¥
13 fplanque Apr 30, 2014 21:44
Hi all,
I'm really late to this party but I just wanted to let you know that we are (finally) working on this.
First off, for those who doubt that a CDN is useful, just read this:
http://b2evolution.net/web-hosting/blog/tips/improve-website-performance-with-cdn
Then, regarding the way to make it work with b2evolution, Yabba was right. But there's quite a few URLs to configure. We want to make this simpler. Especially less places to touch to set up your CDN.
Expect an update soon ;)
I am assuming that I'm not the only one that doesn't have a clue on this subject.
Still searching, if and when I find a solution to this I defiantly will post it here.
Thanks
Brad West