hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Web Design and Content : How to have page for HTTP file downloads
Reply

Forum Jump

How to have page for HTTP file downloads

Reply Post New Thread In Web Design and Content Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 03-03-2014, 01:09 AM
ICS123 ICS123 is offline
Newbie
 
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?



Sponsored Links
  #2  
Old 03-03-2014, 04:46 AM
ekrami ekrami is offline
Junior Guru Wannabe
 
Join Date: Feb 2013
Location: internet
Posts: 78
do you have root access ?
have you any control panel? like cpanel or plesk ??

  #3  
Old 03-03-2014, 04:50 AM
ICS123 ICS123 is offline
Newbie
 
Join Date: Feb 2014
Posts: 18
Quote:
Originally Posted by ekrami View Post
do you have root access ?
have you any control panel? like cpanel or plesk ??
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.

Sponsored Links
  #4  
Old 03-03-2014, 05:16 AM
ekrami ekrami is offline
Junior Guru Wannabe
 
Join Date: Feb 2013
Location: internet
Posts: 78
ok, make a file on root directory or subdomain directory with this name : .htaccess
and put this code on it
PHP Code:
RewriteEngine off 
save it, and restart server

  #5  
Old 03-03-2014, 02:57 PM
scott_m scott_m is offline
Junior Guru Wannabe
 
Join Date: Jan 2013
Posts: 67
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.

__________________
Scott M
InMotion Hosting Customer Community Team


Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to speed up HTTP downloads? crispyhihats Hosting Security and Technology 5 08-19-2013 05:57 AM
slow single threaded http/ftp downloads chrisranjana Hosting Security and Technology 15 11-22-2006 06:08 AM
redirecting file downloads odsdc Hosting Security and Technology 1 06-19-2006 10:01 AM
mod_throttle only recording KB from page - not downloads? Addict Dedicated Server 0 11-30-2002 04:23 PM

Related posts from TheWhir.com
Title Type Date Posted
Spammers Prompt Users to Download Malware Disguised as Heartbleed Bug Removal Tool Web Hosting News 2014-06-03 12:01:37
Egnyte Launches Program to PRISM-Proof Enterprise Cloud File-sharing Web Hosting News 2013-09-27 13:45:48
Mega Firefox Extension Speeds Up Downloads, Removes File Size Limits Web Hosting News 2014-05-01 08:22:29
New Anti-Piracy Law in Japan Prosecutes Downloaders, Could Impact ISPs Web Hosting News 2012-10-02 16:30:30
Pirate Bay Co-Founder Faces Deportation from Cambodia After Arrest Web Hosting News 2012-09-04 13:50:29


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?