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)

mindhunter77 05-20-2009 05:37 PM

Quote:

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)
This is part of my issue, I got nginx running, that was pretty easy, but for some reason I can not access thumbs via the browser, I disabled vbseo attachments, chmod 777, but still no go.

Vitaly 05-20-2009 05:57 PM

I think, this page contains whe most actual resources, if you have troubles with nginx configuration:

http://nginx.net/

There are some links, where you can ask any questions about nginx in english.

mindhunter77 05-21-2009 05:11 PM

Everything seems to be working on my site now, it's just when I check the headers when I go to vist an image I get this

Code:

http://www.xxxxxxxx.com/forum/uploadedimages/1/38251.thumb?d=1236711928

Notice the
Code:

?d=1236711928
Does that mean it's not working and something is wrong?

Vitaly 05-21-2009 05:54 PM

Quote:

Originally Posted by mindhunter77 (Post 1814750)
Does that mean it's not working and something is wrong?

Thhat's ok. Don't care.

?d=XXX - timestamp, used to refresh browser cache, if you update image. It's generated by vB and left intact for compatibility reasons.

mindhunter77 05-21-2009 06:04 PM

ok great then, looks like I got this working...

I will try and help anyone else if I can, so if you have a question ask..

mindhunter77 05-21-2009 06:12 PM

Oh, by the way, vitaly I was able to still use vbseo on attachments as well =)

Vitaly 05-21-2009 07:26 PM

You mean, "attachments rewrite" vbseo options? I din't checked it at all, because don't use it (that option is off in my vbseo config).

Anyway, check twice, that your nginx config has separate "location" for thumbnails, and that this location stays before vbseo location. For example, you can temporary add deny rule for thumbnails location, to check that it's really catched.

vbseo php code should NOT be called for direct thumbnail links. Or you'll get no benefits from this mod.

Mod idea is:
- minimise php calls (no calls for thumbnails at all)
- minimise useless data transfer (can make sense for big attachments)

mindhunter77 05-21-2009 07:51 PM

It strange, I have rewrites enabled for attachments, yet everything works. My headers are showing that they are coming through as direct links like

Code:

http://www.xxxxxxxx.com/forum/uploadedimages/1/38251.thumb?d=1236711928
I must be doing something wrong then lol,

mindhunter77 05-21-2009 09:28 PM

vitaly,

can you think of a good way to tell if this is working? I disabled vbseo attachment rewrites, and it still appears to be working, thumbnails are showing up, but is there a way to test if it's actually doing what it's superposed to?

Vitaly 05-21-2009 09:49 PM

If you turned on "nginx acceleration option", then it's ok.

If you wish to check thumbnails - add "deny all" to thumbnails location from nginx config (see sample from first post). If thumbnails disappears - then all is ok, roll back your nginx config. If thumbnails still shown - then they goes via vbseo rewrite rules and you have to fix nginx config. See my previous recommendation.

The last way to check - turn mod off when server is loaded and check load difference. ~20% in my case. Of cause, if you have few attachments, there will be no difference at all.

VBSEO itself doesn't affect bebefits of this mod, if you've managed to get direct links to thumbnails and proper nginx config. But I've not checked combination with "attachments rewrite" option, so, can't comment if it conflicts with this mod or not.


All times are GMT. The time now is 03:06 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.01109 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)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