vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Board Optimization - vB Accelerator (https://vborg.vbsupport.ru/showthread.php?t=244391)

ImmortalForums 07-26-2010 11:54 PM

Quote:

Originally Posted by Vitaly (Post 2074850)
This mod doesn't affect fullsize attachments, if you turn off "nginx acceleration" option.

If problem caused by this option, then absolute disk path can be wrong, or some rare nginx limitation for X-Accel-Redirect (see docs).

I can not figure out for the life of me the issue. I know the path is correct or the attachments wouldn't load in the first place. I checked the nginx docs there isnt anything I can really configure http://wiki.nginx.org/NginxXSendfile. Eh I will live without the feature.

Vitaly 07-27-2010 02:08 AM

What's in nginx error logs, when option is on?

ImmortalForums 07-28-2010 12:41 AM

Ok here is your error

Code:

2010/07/27 21:33:18 [error] 565#0: *17 open() "/var/www/immortalguild/html/uploads/2/2/6/2/9319.attach" failed (2: No such file or directory), client: 68.194.193.123, server: immortal-guild.net, request: "GET /attachment.php?attachmentid=9334&d=1279589679 HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "immortal-guild.net", referrer: "http://immortal-guild.net/threads/49537-Slippy"
My path to attachments is /uploads

CDN is at http://attachment.immortal-guild.net

The physical directory is /var/www/immortalguild/attachment/uploads
The physical web directory is /var/www/immortalguild/html

So it seems your mod isnt using the CDN URL with X-Accel-Redirect. Hopefully you can fix this. :-)

Vitaly 07-28-2010 07:06 AM

CDN is not used for X-Accel-Redirect, yes. It's for thumbnails only. It's better to keep attachments directory in forum root, and change nginx config for attachments domain (root path). Make mod work without CDN first, then play with domain aliases.

I'll check, what can be improved, but not right now.

delmarva 08-17-2010 07:48 AM

Thank you Vitaly!

Taurus1 12-05-2010 09:15 AM

Hi there. Will this work with LightSpeed?

Taurus1 12-06-2010 08:19 AM

Well, I installed it. Is there a clear way for me to check if it is working?

Thanks.

sivaganeshk 12-08-2010 04:57 AM

Hi, How to use Expire header functions ?

MmS1 12-10-2010 10:26 PM

hello i tried to install Nagns but i can't

i stuck here
/usr/local/nginx/sbin/nginx -t
[emerg]: invalid event type "rtsig" in /usr/local/nginx/conf/nginx.conf:11
configuration file /usr/local/nginx/conf/nginx.conf test failed
root@c134 [/usr]# /usr/local/nginx/sbin/nginx
[emerg]: invalid event type "rtsig" in /usr/local/nginx/conf/nginx.conf:11
Manual-Install-Nginx
http://www.vbulletin.com/forum/showt...lish-Espa%F1ol)

so can u help me

punchbowl 12-29-2010 12:43 PM

Do attachments have to be in a publicly available area for this to work e.g.

/srv/www/domain.com/public_html/attachments

or will it work at

/srv/www/domain.com/attachments

?

CMSTemplateZ 12-29-2010 12:52 PM

Good work :) ive got a board that is slowly growing bigger, this is good to know something like this is available.

Vitaly 12-29-2010 01:18 PM

Quote:

Originally Posted by punchbowl (Post 2140679)
Do attachments have to be in a publicly available area for this to work e.g.
?

thumbnails should be available via www

punchbowl 12-31-2010 09:54 AM

Sorry for being stupid Vitaly but I see no separate setting for storing attachment thumbnails in one place and attachments in another? Will I have to move the attachment directory into www or am I missing something?

Am I right in saying that having attachment in www means that private attachments will be public?

Thanks

Vitaly 12-31-2010 10:19 AM

See example from second post https://vborg.vbsupport.ru/showpost....04&postcount=2 , how to tune nginx. I don't understand your problem.

punchbowl 12-31-2010 10:24 AM

Sorry I'm new to nginx. I didn't understand the "internal" directive. Wow nginx just gets better and better. Cheers and thank you for your patience!

punchbowl 12-31-2010 11:17 AM

nope - can't get it working, when I enable I get no images loading. Disabling makes it ok.

I have attachments @ /srv/www/domain.com/public_html/attach

I have domain.com thus:

Code:

server {
    listen  80;
          client_max_body_size 2M;
    server_name www.domain.com domain.com;
    access_log /srv/www/domain.com/logs/access.log;
    error_log /srv/www/domain.com/logs/error.log;

    location / {
        root  /srv/www/domain.com/public_html;
        index  index.php index.html index.htm;
    }
               
                # globally disable external access to attachments, but enable for X-Accel-Redirect
location /attach {
    internal;
}
# enable thumbnails direct access, but nothing else!
location ~* /attach/(.*)\.thumb$ {
    expires 24h;
}


location ~ \.php$ {
        include /etc/nginx/fastcgi_params;
        fastcgi_pass  127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param  SCRIPT_FILENAME  /srv/www/domain.com/public_html$fastcgi_script_name;
                                fastcgi_connect_timeout 60;
fastcgi_send_timeout 180;
fastcgi_read_timeout 180;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_intercept_errors on;
    }
                }

in admincp I have path to attachements: /attach

cdn: blank

and

Enable large downloads acceleration: ticked yes

edit: I get a 404 for http://www.domain.com/attach/9/226.thumb

acha3ir.net 02-01-2011 11:55 AM

Thank you for the excellent work

ImmortalForums 03-17-2011 07:57 PM

This breaks images inside quote boxes with just the cdn enabled.

Vitaly 03-17-2011 08:01 PM

Please, provide more details.

ImmortalForums 03-19-2011 06:44 PM

When using only the cdn feature and having accel off and someone quotes an image instead of showing the image it just has a link.

Vitaly 03-19-2011 06:54 PM

Does it work correct when this mod is off? If yes, please give me example of bbcode & html source

ImmortalForums 03-22-2011 05:41 PM

Rebuilt the post cache and the quotes show attachments. Now if this only worked on the CMS.

shershen08 05-27-2012 08:26 AM

does it work with 4.1.12 version?

shershen08 05-31-2012 07:07 AM

Quote:

Originally Posted by shershen08 (Post 2333432)
does it work with 4.1.12 version?

it works but there are some problems, see my post in vbulletin.com/forum -
https://www.vbulletin.com/forum/show...vB-Accelerator

majjed2008 11-14-2012 09:07 AM

is it work with vb 4.2 ?

BeoRski 03-27-2013 05:27 PM

Quote:

Originally Posted by majjed2008 (Post 2380972)
is it work with vb 4.2 ?

It seems to be working fine on my site...

fxdigi-cash 05-06-2013 08:43 PM

Thanks for the great mod!

it works on vb4.2.1 fine

webmaster74 11-03-2018 07:57 PM

the last time the dev was online is 4 years ago. This mod was released 8 years ago. How do we know if it is still safe to install ?

Max Taxable 11-03-2018 11:11 PM

Quote:

Originally Posted by webmaster74 (Post 2597164)
the last time the dev was online is 4 years ago. This mod was released 8 years ago. How do we know if it is still safe to install ?

You don't know that ANY mod is safe to install.

webmaster74 11-04-2018 08:30 PM

Quote:

Originally Posted by Max Taxable (Post 2597169)
You don't know that ANY mod is safe to install.

you are indeed right, but in principle, a recent mod is less of a risk than an old and non-updated one.

MarkFL 11-04-2018 10:55 PM

Quote:

Originally Posted by webmaster74 (Post 2597186)
you are indeed right, but in principle, a recent mod is less of a risk than an old and non-updated one.

Whenever I have interest in using a new (that I've not used before) product, I always install on a test installation first, and put it through its paces there, and work out all issues if they exist before I consider installing on a live site.


All times are GMT. The time now is 09:07 AM.

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

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01333 seconds
  • Memory Usage 1,781KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (31)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