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)

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.


All times are GMT. The time now is 04:41 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.01054 seconds
  • Memory Usage 1,735KB
  • 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
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)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