Register Arama Bugünkü Mesajlar Tüm Forumu Okundu Say

Reply
 
Thread Tools
MULTIPLE cookieless domains (speed improvement)
vB.Org Poster
vB.Org Poster has disabled reputation
Kayıt Tarihi: Jul 2018
Mesajlar: 298

Show Printable Version Email this Page
yazan vB.Org Poster 10 Jul 2018, 16:41

Since vbulletin uses a LOT of images plus CSS and JS i decided to separate all of them into cookie less domains

First of all on admincp set cookies only for your forum MAIN domain (ie Website Hosting - Mysite.com) not .mysite.com

DNS:
First of all i created some subdomains
static.mysite.com
static2.mysite.com
staticcss.mysite.com
staticjs.mysite.com

all of them pointing to the same server

Web server:
i created a new vhost:

Kod Blok Kilitli:      (Kayıt veya giriş yapmalısın)  
Engellenmiş, kayıtlı olmayan veya onay bekleyen kişiler kodlara erişemezler.

Filesystem:
My vb site is in: /usr/local/www/web_mysite_com
and the static content is in: /usr/local/www/estaticos_mysite_com
inside this new vhost directory i also made two aliases (because of my permissions)

clientscript -> ../web_mysite_com/clientscript
images -> ../web_mysite_com/images

* given my permission direct access to this shite would give you a forbidden, maybe you could create an empty index file

htaccess:
i have a redirect for my domain so now i had to make a few changes to:

Kod Blok Kilitli:      (Kayıt veya giriş yapmalısın)  
Engellenmiş, kayıtlı olmayan veya onay bekleyen kişiler kodlara erişemezler.

plugin:
go to your admincp and create a new plugin in global_complete hook

Kod Blok Kilitli:      (Kayıt veya giriş yapmalısın)  
Engellenmiş, kayıtlı olmayan veya onay bekleyen kişiler kodlara erişemezler.

*original code from here: vBulletin.org Forum - View Single Post - Improve Web Page Performance

images:
Go yo "templates and styles"
choose your style and then in Style Vars filter by imgdir
replace those PATHs with new-hostname/ + original path
IE: images/buttons -> AVAILABLE - MySite


NOTE: because a bug in vb code here you can make a real mess, check this report first:
vBulletin Issue Tracker
* Long story short:
a solution that worked for me was from David Grove:


and you are done, now your site should be a bit faster
Views: 26
Reply With Quote
Reply

Thread Tools

Şunları Yapabilirsin
Yeni Konu Açmak
Konuya Cevap Yazmak
Eklenti Eklemek
Düzenleme Yapabilmek

Forum Atla


LD'de Yeni misin? Yardıma mı ihtiyacın var?

All times are GMT +3. The time now is 06:26.

Tasarım Özelliği | Genişlik: Geniş Renk: MULTIPLE cookieless domains (speed improvement) MULTIPLE cookieless domains (speed improvement) MULTIPLE cookieless domains (speed improvement) MULTIPLE cookieless domains (speed improvement) MULTIPLE cookieless domains (speed improvement)