vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   General Hosting/Server Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=197)
-   -   I had this crazy idea just now.. (https://vborg.vbsupport.ru/showthread.php?t=128463)

Ntfu2 10-07-2006 12:37 AM

I had this crazy idea just now..
 
My attachments are being served up nice and slow here lately as i hit 10k members, and over 23GB of attachments the attachments get slower and slower.

My plan.

Install one of these other http servers such as light http or something.

Bind that to one IP address on the server. Create a subdomain for images such as attach.site.com and then set the IP in the DNS configuration to the IP i've bound the light http to.

Will this work?

Ntfu2 10-12-2006 04:14 PM

anyone?

netwind 10-25-2006 09:12 AM

Ntfu2 attachment.php still called even you store attachments in filesystem. You need light httpd and modify code.

Ntfu2 10-25-2006 02:16 PM

Didnt have to modify any code.

1. Setup subdomain such as attachments.sitename.com

2. Edit DNS zone for subdomain to point to a extra IP

3. Install lighttpd and bind it to that one IP

Images are loading 1000x faster, wether thats how its suppose to be done or not :)

netwind 10-25-2006 02:24 PM

Did you already do it ?
How you create links at forum to this subdomain ?
And how light httpd can control attachments access with forum permissions?

COBRAws 10-25-2006 03:50 PM

how did you change so attachments.php will point to your subdomain? Im interested on doing what you did.

Thanks!

Ntfu2 10-25-2006 04:41 PM

I didnt move attachment.php to the subdomain.

I simply put all the attachments inside the subdomain, and linked that subdomain to a certain IP. Then installed lightttpd to that one IP address. (lightttpd can also read from particular folders if setup correctly.)

Like i said, i dunno if this works as intended, but it speeded up Attachments immensly and dropped load due to the number of requests my site gets for the attachments.

netwind 10-25-2006 05:56 PM

OK, then you have two ways :
1) modify attachment link code for write out direct link : <a href="data.myforum.com/data/1/2/3/blabla">
direct link provided to user and this may be insecure in some cases..

2) modify attachment.php and setup special http server, which can serve files from pointed place.

If you are coder - do it !

Ntfu2 10-25-2006 11:02 PM

i dont understand why i'd need to modify any files?

I put them all in a subdomain, and lighttpd is configured to read from that and apache is configured not to?

Is there something i'm missing?

netwind 10-26-2006 04:50 AM

Ntfu2 did you see any vbulletin pages at all ? :)

All links to attachments looks like <a href="attachment.php?blablabla"> .
But you need another direct link to static file or http acceleration.

You way can be useful too : modify style preferences for image url and all images like buttons,logos
will download from you light server.


All times are GMT. The time now is 11:55 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.02705 seconds
  • Memory Usage 1,718KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete