The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
Best way to host attachments remotely?
[edit] Nevermind, I think I'll just use the vB Image Hosting mod instead. [/edit]
I'm running vBulletin on a tri-server setup -- one webserver and one database server in one colo and a hosted box elsewhere for static stuff like images and such. I need to conserve as much bandwidth as possible on the webserver and instead use the low power, but huge bandwidth static box. I'm currently using phpBB and hosting the avatars remotely. I do this by running a cron that syncs the avatars folder on the static box with the one on the webserver and then redirecting to the static box via a .htaccess file. Works quite well (except for the couple minutes after a user uploads an avatar and before the cron has had a chance to sync their image over, but that's handled by a pretty "coming soon" image). See it in action here. Anyway, now that we're switching to vB, I'd like to do something like that for the attachment system. I've told vB to store the attachments as files on the webserver rather than in the database, but of course attachment.php still reads the file and then outputs the file contents in order to mask the URL/path of the attachment file. I have come up with two ideas for serving the attachments off of the static box. Both start with creating a sync of the attachments folder on the static box (very easy to do). Then...
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|