vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=194)
-   -   Major Additions - Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=119041)

AndrewD 10-25-2006 07:37 AM

Quote:

Originally Posted by EasyTarget
I recently moved all the files off of the server I'm hosting on to a remote url which I also own. If I use the ldm to download the file my speed is MUCH slower than if I link to the file in my browser. (I'm not talking about the time for the download to start, I mean the duration of the entire download). Is there a way to avoid this? it counteracts the whole reason I moved the files.


I wondered if you'd find this. It's all explained in the wiki, but probably lost in the annals of time.

If you set up LDM with all the (default) security settings turned on, then you've told LDM to keep the file location hidden from the end user. To do this securely for 'downloads' (i.e. files with filetypes that appear in your VB attachments table), it reads the file a block at a time and then transfers these blocks to the user.

This process is:

a) very quick if the file is on the same server as LDM and is referenced just using a local filename
b) slow and expensive if the file is on another server, because the code has to physically read the file over the internet and then retransmit it to the user - everything goes over the internet twice
c) somewhere in between if the file is actually on the same server but is referenced using a full url rather than a local filename.

I 'guestimate' that there is a factor of 1000 difference between case a and b.

When you simply type the url into the browser, then the file is obtained directly from the server on which it is held. There is no need to buffer the file somewhere, and there is also no need to involve a php script in the transfer - everything is dealt with by Apache/IIS/etc, which are 'hard coded' for efficiency.

Now, you can tell LDM to behave the same way as Apache, by setting LDM/admin/settings/force_redirect to 1 or 2. This will recover the speed, but it will no longer guarantee that the file location is secure from prying users. Case 2 is the most visible. Case 1 is partly hidden, but the really inquisitive user can discover where the file is held. Case 0 is fully secure at the cost of slow speed and extra cpu and double bandwidth.

Incidentally, if the file type is not in the VB attachments table, LDM always behaves as if force_redirect = 1

So this is the choice you have to make.

hotwheels 10-25-2006 01:26 PM

I am kind of confused on this. After the install and going to set the local_file_root and local_file_root_prefix. What exactly am i going to put in there.....? I attached an image of the local and icon's not being enabled......I set a path for the icons and they will not appear with ldm. If i go to the icon's through my server and click on the link inside the ldm icons file, i am directed to the icon, but using the same addy inside the ldm setting's page, it keep's saying that it can't find the file......

|oR|Greg 10-25-2006 01:44 PM

Andrew, I added this and a little advertising for ya. https://vborg.vbsupport.ru/showthread.php?t=129933

Ophelia 10-25-2006 02:12 PM

Quote:

Originally Posted by obmob
Outback is good... geez, i love meat :D

Meat is good!

EasyTarget 10-25-2006 02:47 PM

Thanks Andrew, I went with option #1. I'll just add some redirect index pages to keep people from indexing the file server.

hotwheels 10-25-2006 04:27 PM

As well as this 532 where exactly is the php.ini file located......I have looked everywhere that i can think of and i just can't locate it for some reason.
I tried to install a video and it said that it was to large for my php.ini settings.....

|oR|Greg 10-25-2006 04:48 PM

PHP.INI I think is a file PER folder on your server. You can adjust it also usually by the PHPMYADMIN settings on your site. I set mine to 80mb I think.

AndrewD 10-25-2006 06:41 PM

Quote:

Originally Posted by hotwheels
I am kind of confused on this. After the install and going to set the local_file_root and local_file_root_prefix. What exactly am i going to put in there.....? I attached an image of the local and icon's not being enabled......I set a path for the icons and they will not appear with ldm. If i go to the icon's through my server and click on the link inside the ldm icons file, i am directed to the icon, but using the same addy inside the ldm setting's page, it keep's saying that it can't find the file......

local_file_root and local_file_root_prefix are, if you like, specialised features for people who are running the web site on a server that is fully under their own control. They give you the possibility to increase security, but only if you really understand what you are doing and only if you do have full control of your server. If you don't, leave the settings alone.

Basically, these are used to control how LDM locates the downloadable files which it manages and which are stored on the server itself. LDM by default does a pretty good job of hiding the location of file downloads. However, if you really want to make sure that no-one can get at your files except through LDM, then you use these parameters to tell the program whereabouts on the web server the files are to be placed. All 'lookups' are translated to this part of the file system.

Concerning the icons setting, if you upload the icons into subdirectory ldm_icons of your *forums* directory, then set file_icons_dir to ldm_icons.

AndrewD 10-25-2006 06:44 PM

Quote:

Originally Posted by hotwheels
As well as this 532 where exactly is the php.ini file located......I have looked everywhere that i can think of and i just can't locate it for some reason.
I tried to install a video and it said that it was to large for my php.ini settings.....

or_greg's answer is not quite correct.

php.ini is a file that is used by your web server (e.g. Apache) to control how the server handles php scripts. It sets things like maximum time limits for scripts to execute, maximum file upload sizes, and many other settings.

Where the file is stored depends on the web server and the operating system. For example, with a Windows box running Apache, the file is usually dropped into the windows directory itself.

If you do not have full control of your web server, then you will have to ask the system administrators to edit the file on your behalf. Generally, they will know exactly what you are talking about if you mention 'php.ini' and the specific parameters that need changing.

|oR|Greg 10-25-2006 07:02 PM

Andrew, I thought on linux servers you could drop the php.ini per folder and have it be more micro-managed, or, drop it in your root and let it trickle down, assuming you didn't drop another further in your site?


All times are GMT. The time now is 06:46 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.03111 seconds
  • Memory Usage 1,752KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)pagenav_pagelinkrel
  • (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