Results 1 to 5 of 5
-
03-03-2014, 01:09 AM #1Newbie
- Join Date
- Feb 2014
- Posts
- 18
How to have page for HTTP file downloads
I'm having some odd issues. If I put a number of files, let's say ISO's in the root folder of a subdomain and I go to that subdomain, I thought I would see a list of files that could be downloaded. The strange thing is that this does happen some times and other times I get a 403 or 404 error or at times nothing at all, it depends upon what server I'm running.
The webserver I'm running is apache and it is on a centos host (sometimes ubuntu).
so if the subdomain is at:/var/www/html/vhosts/sitename/subdomain/FILES_TO_DOWNLOAD.iso and I go to the subdomain, I want to have a list of the files that are in that subdomain - this usually has an arrow to go to the parent directory at the top of the list. This is how the linux distro's usually have their download servers set up.
does this have to do with permission or owners settings?
-
03-03-2014, 04:46 AM #2Junior Guru Wannabe
- Join Date
- Feb 2013
- Location
- internet
- Posts
- 90
do you have root access ?
have you any control panel? like cpanel or plesk ??
-
03-03-2014, 04:50 AM #3Newbie
- Join Date
- Feb 2014
- Posts
- 18
I have root access on one server which I can test. It was working on the server I didn't have root access on. It was working on one sub domain and all I did was move everything to a different subdomain (located in same subdomain folder ./subdomain1/first location ./subdomain2/second location). The settings were the same on both as far as I could tell (ls - lash command showed same users and owners, same file permissions).
I'm using plesk on one server with root and a proprietary panel with the web hosting service I use.
-
03-03-2014, 05:16 AM #4Junior Guru Wannabe
- Join Date
- Feb 2013
- Location
- internet
- Posts
- 90
ok, make a file on root directory or subdomain directory with this name : .htaccess
and put this code on it
PHP Code:RewriteEngine off
-
03-03-2014, 02:57 PM #5WHT Addict
- Join Date
- Jan 2013
- Posts
- 117
Hello ICS123,
In the subdirectory, create an .htaccess file.
In the .htaccess file, enter the following code:
Options +Indexes
This will force the file listing for that folder as long as there is no index file (index.html, index.php, etc)
If there is code that restricts the viewing of the file listing (usually code in an htaccess file that says "Options -Indexes") you will receive a 403 (usually) or 404 error.[B]Scott M
Similar Threads
-
How to speed up HTTP downloads?
By crispyhihats in forum Hosting Security and TechnologyReplies: 5Last Post: 08-19-2013, 05:57 AM -
slow single threaded http/ftp downloads
By chrisranjana in forum Hosting Security and TechnologyReplies: 15Last Post: 11-22-2006, 06:08 AM -
redirecting file downloads
By odsdc in forum Hosting Security and TechnologyReplies: 1Last Post: 06-19-2006, 10:01 AM -
mod_throttle only recording KB from page - not downloads?
By Addict in forum Dedicated ServerReplies: 0Last Post: 11-30-2002, 04:23 PM