vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   General Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=189)
-   -   How to setup a CDN for vbulletin (https://vborg.vbsupport.ru/showthread.php?t=257127)

CvP 01-25-2011 03:42 PM

I wonder how a CDN based on geoip will do.
for example, using examplex.com for country x and exampley.com for country y.
ofc examplex and exampley are two different servers hosted on two different countries.
the main problem seems to be the synchronization between files/writing files.

cuocsongso 03-01-2011 12:47 AM

1 Attachment(s)
Quote:

Originally Posted by extreme-gaming (Post 2148977)
To edit your vBulletin style to enable CDN, follow these steps:

* Open admincp by visiting http://mywebsite.com/admincp/ > Select Styles & Templates > Replacement Variable Manager:
* Click on [Add New Replacement Variable] link and set it as follows:
o Set Search for Text to href="clientscript
o Set Replace with Text to href="http://cdn.mywebsite.com/clientscript

Code:

You need to repeat this step for images, javascript and other shared media as follows:
Search for Text         Replace with Text
src="clear.gif"         <src="http://cdn.mywebsite.com/clear.gif"/td>
src="customavatars/         src="http://cdn.mywebsite.com/customavatars/
src="customprofilepics/        src="http://cdn.mywebsite.com/customprofilepics/
src="images/         src="http://cdn.mywebsite.com/images/
url("clientscript         url("http://cdn.mywebsite.com/clientscript
src="clientscript/         src="http://cdn.mywebsite.com/clientscript/
href="clientscript/         href="http://cdn.mywebsite.com/clientscript/
url(./images/         url(http://cdn.mywebsite.com/images/
url(images/         url(http://cdn.mywebsite.com/images/
var imgdir_misc = "images/misc";        var IMGDIR_MISC =    "http://cdn.mywebsite.com/images/misc";

Avatars & Pictures - Storage Type

* Visit Avatars > Storage Type and set them as follows to match your above CDN rules by moving all of them to file systems:
o Avatars are currently being served from the filesystem at ./customavatars
o Profile pictures are currently being served from the filesystem at ./customprofilepics
o Signature pictures are currently being served from the filesystem at ./signaturepics

How Do I Test Images And Other Media Files Are Cached Or Not By CDN? Use curl to test HTTP headers (look for Etags, max-age and Expires headers):

Code:

$ curl -I 'http://cdn.mywebsite.com/clientscript/vbulletin_important.css?v=385'
$ curl -I http://cdn.mywebsite.com/customavatars/avatarx_y.gif

Credit for this nice & short tutorial goes to these guys.
http://wiki.netdna.com/Implementation/vBulletin

I met a problem after when I do it, please view attachment images

How to fix it? Thank you

A.Chakery 04-29-2011 03:39 PM

solved, thanks so much for the tip :)

8thos 07-25-2011 06:39 PM

Today I started using Cloudflare which comes with URLJET. Not sure if it's working yet.

final kaoss 07-28-2011 06:33 PM

Yes as long as you setup cloudflare properly it does fine.

Quote:

16,066 requests saved by CloudFlare
32,112 total requests

But be aware that it is not a recognized CDN according to pagespeed, yslow & gtmetrix.
http://wordpress.org/support/topic/h...wp-super-cache
Quote:

Originally Posted by Frederick Townes
It's important to understand that CloudFlare is *not* a CDN, nor is it their intension to be. Furthermore nothing replaces properly tuning your web site before adding other services as next or final steps.

He is the guy at http://www.w3-edge.com/ aka the company who made the popular w 3 total cache plugin for wordpress.

8thos 07-30-2011 02:24 AM

Google has a CDN now. Should I switch to them? http://googlecode.blogspot.com/2011/...rformance.html

final kaoss 07-30-2011 12:40 PM

As soon as they fix their sign up form, I'll be able to check it out.

Quote:

We're sorry.

You can't access this form because it is in violation of our Terms of service. If you feel this is in error, please contact us.

Find out more at the Google Docs Help Center.
Quote:

At this time, Page Speed Service is offered to a limited set of webmasters. You can request access to the service by filling this web form. (which is broken)

final kaoss 07-31-2011 01:46 PM

Now it's working!

Alfa1 08-01-2011 06:10 AM

Quote:

Originally Posted by Octavius. (Post 2226669)
Google has a CDN now. Should I switch to them? http://googlecode.blogspot.com/2011/...rformance.html

Its sure worth a try.

sivaganeshk 11-27-2011 05:00 PM

http://wiki.netdna.com/Implementation/vBulletin

The CDN plugin mention here is not available :(
any help. I have MaxCDN but don't have vbSEO


All times are GMT. The time now is 01:34 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01543 seconds
  • Memory Usage 1,742KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete