![]() |
Quote:
|
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. |
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 |
Quote:
?d=XXX - timestamp, used to refresh browser cache, if you update image. It's generated by vB and left intact for compatibility reasons. |
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.. |
Oh, by the way, vitaly I was able to still use vbseo on attachments as well =)
|
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) |
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 |
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? |
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. |
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 |
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. |
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 { |
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. |
ok, set at 30d; ??
|
No. Remove it at all.
|
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 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 { |
Quote:
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 |
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
|
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 |
I Have A Question Before Installation
The Attachment And Albums And Blogs Stored In The FTP But About The Thumbs ? From Where Can I Move Them To The FTP ? |
You need to have everything stored in the file system.. NOT in the database.
FTP has nothing to do with it. |
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 Edit/Delete Message Reply With Quote |
Quote:
but about the thumbs ? |
once you move the attachments to the file system, the thumbs will be placed there as well. You don't need to do anything separate for them, just make sure your attachments are served from the file system.
|
Quote:
|
1 Attachment(s)
Why The Attached Pictures Look Like This ??
Wen Uploading A Small Image To The Attachments t look Like This https://vborg.vbsupport.ru/attachmen...3&d=1243209261 And Wen Upload A Big Pictures It Look Like This https://vborg.vbsupport.ru/attachmen...4&d=1243209261 |
Works great for me.
I just switched from inline attachments to thumbnails, so this seemed like a logical step too. Lets just say anything that uses less server resources is a huge plus in my book. Added this to my .htaccess to prevent .attach viewing on an Apache server. Seems to work fine. Code:
RewriteCond %{REQUEST_FILENAME} \.attach [NC] Thanks for the modification, Vitaly! |
Do I need to "Enable large downloads acceleration" if I have nginx as a frontend and apache as a backend?
|
Probably, that will work. Try to enable. I haven't tested such combination.
|
thank u
I will rty it |
The nginx part of this mod also works perfectly if you run nginx as a reverse proxy, with an Apache backend, even if Apache handles your PHP files.
After some basic nginx configuration (listed in post #2), it's very good to be able to let nginx handle the attachments instead of Apache. With attachments and all my static files now handled by nginx, a very basic VPS now goes a lot faster. |
thanks
|
Again can this hack work with cpanel
Is there any way this hack work with files lika thumb |
Any chance of this mod being updated for vB 4.0 when the time comes?
|
Quote:
|
Does this plugin work for vB 3.8.5?
|
I did't upgraded my 3.8.4 yet. But don't expect problems with 3.8.5
|
do you have anything for vbulletin 4 ?
|
Wouldn't this be useful for other areas? I know it covers thumbs, but what about any folder that has strictly static files, wouldn't it be best to have nginx serving those as well? I mean my style folder has hundreds of images that I would assume could benefit from something like this as well?
|
All times are GMT. The time now is 10:21 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:
|