vb.org Archive

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

MmS1 05-21-2009 10:14 PM

Thanks i have two problem
1 when i active this mod i can't download any files "attachments"

2 It's only for thumbs i mean is there any option to make it with other attachments i have a big Problem with attachments server load i have more then 60 user download attachments each One 20 mb and up to 40
Thats will help me alot

Vitaly 05-21-2009 10:43 PM

MmS1,

Do you use nginx webserver? I have no problems with full attachments (not thumbs), but this option work ONLY with nginx. With other webserver "nginx acceleration" must be disabled, see FAQ. Don't enable all mod options "just for fun", if you don't have nginx webserver.

If you use nginx, but full attaches can't be downloaded, check twice absolute path to directory (see config samples in FAQ)

Try to re-read FAQ and my explanations on previous page.

mindhunter77 05-21-2009 10:58 PM

This is the config I used when I had your mod working AND vBSEO attachment rewrites going. Now from the site, everything worked. In fact, load even when down. Yet I'm not sure if it's correctly working or not.

Notice I did not add your config options as this seemed to work.

Code:

server {
listen  80 default;
server_name www.xxxx.com xxxx.com;
server_name_in_redirect on;


location / {
root  /www/vhosts/xxxx.com/htdocs;
index index.php;
autoindex on;
access_log off;

}

location ~ \.php$ {
root          /www/vhosts/xxxx.com/htdocs;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
include  fastcgi_params;
fastcgi_intercept_errors        on;
}


location /forum/ {

if (!-e $request_filename) {
rewrite ^/forum/(.*)$ /forum/vbseo.php last;
}

}
if ($request_filename ~ "\.php$" ) {
rewrite ^(.*)$ /forum/vbseo.php last;
}



location ~* \.(swf|pdf|ico|css|js|gif|jp?g|attach|thumb|png)(\?[0-9]+)?$ {
expires max;
root        /www/vhosts/xxx.com/htdocs;
}



location /status {
    stub_status on;
    access_log  off;
}

 }


Vitaly 05-21-2009 11:29 PM

At first glance, that can work :)

IMHO, there are no reasons to add "expires max". Very cheap economy, but potential problems with browser cache, if you upload new CSS for some mod and so on.

mindhunter77 05-21-2009 11:54 PM

ok, set at 30d; ??

Vitaly 05-22-2009 12:04 AM

No. Remove it at all.

mindhunter77 05-22-2009 01:52 AM

ok,

For those who want to test this mod with vBSEO still handling your attachments this is my working conf file nginx. This one is updated from the last one I posted and has some fixes. Keep in mind a few things.

1) In my conf where it says /thumbnails is not attachment thumbnails, I embed flv video on my site and this is where the flv thumbs go. You will not need this.

2) I placed this in the mod config area, and have both options set to YES.

Code:

/forum/uploadedimages
3) My server was running between 2.00 and 3.00 at all times before this mod, it now runs at 1.0 or less. I could probably get it even lower then that if I disabled the handling of attachments through vBSEO all together, but I get a lot of google image traffic and don't want to risk loss of ranks.

4) My forum gets about 50,000 unique per day, 90% of all threads contain pictures and video with picture thumbnails at 400px.



Code:

server {
listen  80 default;
server_name www.xxxx.com xxxx.com;
server_name_in_redirect on;



location / {
root  /www/vhosts/xxxx.com/htdocs;
index index.php;
autoindex on;
access_log off;

}

location ~ \.php$ {
root          /www/vhosts/xxxx.com/htdocs;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param  SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;
include  fastcgi_params;
fastcgi_intercept_errors        on;
}



location /forum/ {

if (!-e $request_filename) {
rewrite ^/forum/(.*)$ /forum/vbseo.php last;
}

}
if ($request_filename ~ "\.php$" ) {
rewrite ^(.*)$ /forum/vbseo.php last;
}


location /forum/uploadedimages {
root    /www/vhosts/xxxx.com/htdocs;
expires 24h;
}



location /forum/thumbnails {
root    /www/vhosts/xxxx.com/htdocs;
expires 24h;
}


location ~* ^.+\.(gif|png|ico|css|zip|tgz|gz|rar|pdf|bmp|js|swf) {
access_log  off;
expires 24h;
root        /www/vhosts/xxxx.com/htdocs;

        }


location /status {
    stub_status on;
    access_log  off;
}

 }


MmS1 05-22-2009 11:09 AM

Quote:

Originally Posted by Vitaly (Post 1814914)
MmS1,

Do you use nginx webserver? I have no problems with full attachments (not thumbs), but this option work ONLY with nginx. With other webserver "nginx acceleration" must be disabled, see FAQ. Don't enable all mod options "just for fun", if you don't have nginx webserver.

If you use nginx, but full attaches can't be downloaded, check twice absolute path to directory (see config samples in FAQ)

Try to re-read FAQ and my explanations on previous page.

Thanks alot but iam not running with nginx
I have hostshare is that oky i mean they can install nginx 4 me or not

My attachments path out forum path how can mange this

mydomain.com/vb this is my forum path
mydomain.com/vbatttatn this is my attachments path

mindhunter77 05-22-2009 04:41 PM

nginx is a webserver, for this to work 100% you need to be using nginx as your webserver, your host may not just switch that for you, you will have to ask them

MmS1 05-22-2009 07:51 PM

thanks i'll ask them
and about the path

My attachments path out side forum path how can mange this

mydomain.com/vb this is my forum path
mydomain.com/vbatttatn this is my attachments path


All times are GMT. The time now is 03:11 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
  • Page Generation 0.01196 seconds
  • Memory Usage 1,747KB
  • 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
  • (3)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