![]() |
vB Accelerator
1 Attachment(s)
vb 4.0 version here This mod is suited for medium and big boards. It reduces server load, caused by thumnails and big attachments. what's the problem with?
This mod is developped here: http://github.com/rcdesign/vb-accelerator . Patches are welcome. History 0.4 - fixed bug with PHP wagnings in server logs. 0.3 - first public release |
Faq
Q1. I don't have nginx. Will this mod work for me? Yes, partially. Enable direct thumbnail links, but disable nginx acceleration. You'll still have serious benefit, if your forum is plenty of attachments. Q2. What about lignttpd, apache and so on? They have X-Sendfile, alternative to nginx X-Accel-Redirect. I know, but:
Why not? You can give direct access for thumbnails, but disable direct access to original files. Just configure your server properly. See examples below. Q4. Thumbnails looks like files with strange extention and mime-type. Will those be ok in browser? Yes. HTML-page address those files via imagetag. So, browser show those properly, even with wrong mime and strange extention. Q5. Why don't you fix that for sure? Because that requires vB sources modification, and i hate such things. And if everyting works fine, who cares about mimes :) ? Q6. My forum has 20 users online, and I don't see difference at my 32-core server with 128Gb ram and 8 SSD raid array. You a happy man, really. Q7. Does it work with VBSEO ? If attachment rewrite is disabled - yes, it works. And check, that attachments path is separated in vbseo rewrite rules in webserver config. I use vbseo in this mode with no problems. Sorry, no plans now to make better integration with vbseo. But code is reuseable, or you can send your patches :) Server configuration examples let's say, whe have the following folders structure: /uploads /uploads/blogs/* <- blog attachments & thumbnails /uploads/posts/* <- forum attachments & thumbnails /uploads/albums/* <- album images /uploads/al_thumbs/* <- album previews So, we have to setup direct access for thumbtails, but protect original files. Nginx # globally disable external access, but enable for X-Accel-Redirect location /uploads { internal; } # enable direct access to blogs & posts thumbnails, but nothing else! location ~* /uploads/(.*)\.thumb$ { } # enable direct access to album thumbnails location /uploads/al_thumbs/ { } Apache/Lighttpd TBD. You are welcome to share your one :) |
Gracias Voy a probarlo ahora mismo .
|
Well, it works! Thank you!
|
is this a good option for small forums?
|
Quote:
In apache httpd.conf, I know you can use: Code:
AddType image/jpeg .thumb |
what is this nginx ?i have centos OS and apache .. will this increase performance on that?
|
Quote:
But nobody prohibit you to try and compare if server load changes :) . At least, direct linked thumbnails will be loaded faster for your users. Quote:
|
Quote:
In fact, that should be done before any futher vb optimizations. Maybe I'm a bit categoric, but in my opinion apache+mod_php system is absolutely inpredictable at big loads. Server optimisation should be done prior to any scripts optimization. That's essential. |
I don't have an uploads folder so I don't know the paths
Path to etc How do I find this out? |
ACP -> Attachments -> Storage type
ACP -> User Albums -> Storage type You'd better look to vB documentation about details. That's VERY CPU/Disk intencive operation, and you have to backup your board. |
Quote:
Quote:
|
Anyone have any code to make the thumbnails accessible in LITGHTPD ?
|
Warning: Invalid argument supplied for foreach() in [path]/includes/class_postbit.php(265) : eval()'d code on line 43
ERROR |
relaxiha,
1. Which php version? 2. Fatal error or warning message in webserver log? 3. At which page? http://forum.rcdesign.ru/f14/ Seems to work. Go to any topic with attachments and see direct links for preview sources. |
PHP Code:
I have Apache please more detalis how setup direct access for thumbtails, because stop show ;( |
1 Attachment(s)
Try attached file, that should help with warning mistake.
|
Working :) You are my Idol Thank You, everything is ok, only under IE and Opera thumbtails, not show. Under Fiefox and Chrome everything is ok... little bit strange? but I try checking config browse
Thank You |
Hm... that's strange... Find any direct link in FF, and check manually, that it's accessible from IE/Opera via web. Don't hesitate to provide screenshots of broken pages. I have very weak telepathy skills, to understand the problem from description "it doesn't work"
Nobody of my regular 6000 users reported problem with IE. Try this advice: https://vborg.vbsupport.ru/showpost....07&postcount=9 May be, apache work not as nginx with unknown extention types, no idea. |
I install plugin again and now is ok, under IE, Opera, Chrome, Firefox :)
Thank You, Thank You, Thank You...Vitaly Regards chesterano |
Since no more bugs reported - version 0.4 released. If fixes php warnings in webserver logs. Nothing special.
|
preeeeeettttyyyyy please make this work with lighttpd lol...
|
Thank You, Thank You, Thank You...Vitaly
|
Thank you very much.
|
Thanks installed
|
Hi
I have VBSEO running on one of my forums and the attachment URL's are re-written to include the name of the post and forum. When I Set direct links for thumbnail images to Yes, this breaks all of my images (I assume there is a comflict between VBSEO and your great mod). Should this work with VBSEO or hasn't it been tested. Thanks in advance :) |
I have vbseo installed, but URLs conversion for attachments is turned off in my configuration.
Sorry, no plans to integrate with vbseo attachments urls conversion. |
Request for lighttpd integration =)
|
Hi there does with work with vbseo and vboptimise?
|
How do I make the thumbs web accessible? They are located in a web accessible DIR as well as 777 chmod but I still can not bring them up in a browser.
|
Quote:
I have same problem my path is "/home/palungjit/board/attachments" When i put this path it doesnt show thumbnail after i t put "attachments" then it work |
My board just in stall this plugin
Posts: 1,773,284 Members: 254,310 Attachments : 255.61 GB Attachments : 495,833 reccords I thinks this plugin will help to reduce server load. |
how did you make the .thumb web accessible?
|
is there a way to verify this is working, I think I finally got it all figured out but wanted to verify.
|
Finally got this going I think, only one drawback from my site, it seems that this conflicts with this mod,
WATERMARK ATTACHMENTS https://vborg.vbsupport.ru/showthread.php?t=201972 If I turn off Enable large downloads acceleration, the watermarking works again. |
Not working
the attachments still /attachment.php?attachmentid=2403 plz help me am having big problem with attachments |
Yea, mine look this
Code:
http://www.xxxxxxxxx.com/uploadedimages/1/20016.thumb?d=1222135419 |
It's oky working fine with me
But i can't download files pic's oky i can but files i can't even the attachments convert them into direct link or just thumb only |
could someone who has this working post their nginx.conf so I can see what I'm doing wrong, this still isn't working.
|
For all, who think, that mod is not working:
1. Check that thumbnails are accessible via www (type URL to any thumbnail in browres path). Browser should offer to download file or to show thumbnail (if youcared about mime type) 2. Look into page source, and check "direct" path to any thumbnail. If pattern is different - fix appropriate mod settings. 3. Split your job in 2 parts: - try to do direct thumbnails working first - try to make work nginx accelerated download. DONT turn it ON with another web-server. 4. If you have VBSEO - don't enаble attachments rewrite. Sorry, but can't consult everyone about each particular configuration :( . I hope, that general recommendations will help. |
All times are GMT. The time now is 02:10 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|