Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 3rd, 2002, 10:00 PM
Sledge48 Sledge48 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 4 Sledge48 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
file download configuration

I was wondering how I could configure my apache webserver so that clients can download files from my server when they click on a link to, for example, an .exe file or .zip file. Right now, when you click on a link with such an extention, it pulls up an error page. Any tips??

Reply With Quote
  #2  
Old February 3rd, 2002, 10:11 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> when they click on a link to, for example, an .exe file or .zip file

You don't need to manually configure that as that's configured in mime.types file already by default.

>> it pulls up an error page

Which error code? 404? 403? 401? 500?

Since you haven't provided sufficient details, what you can try yourself is to upload an hello.html file to the same directory where your zip/exe files reside, then try to access that hello.html file and tell us what happen.

Reply With Quote
  #3  
Old February 3rd, 2002, 10:17 PM
Sledge48 Sledge48 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 4 Sledge48 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
It gives me a 404 error. Say I have a zip file in my home directory. I post a link to URL and it gives me a 404 "Page cannot be found" error.

Reply With Quote
  #4  
Old February 3rd, 2002, 10:35 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> I have a zip file in my home directory

What's your home directory? Keep in mind, Apache doesn't serve files that reside in home directory. You need to put your stuffs to your so-called DocumentRoot.

Like I said, don't always assume it's a MIME type problem when you get a 404 error when trying to access a link to zip/exe file. Start out with a plain hello.html file and make sure you know what DocumentRoot is. If not, go read up Apache docs.

Reply With Quote
  #5  
Old February 3rd, 2002, 10:42 PM
Sledge48 Sledge48 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 4 Sledge48 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I posted a page in the directory with my files and got it work, sorta. Now, it pulls up a page with a broken image sign when i click on the link. If I right click on the link, I can "save as" and it the client can save the file, but, how can I have the client be able to download the file automatically when they click on the link?

Reply With Quote
  #6  
Old February 3rd, 2002, 11:03 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> to download the file automatically when they click on the link?

For what file type? Like I said in my first post, for zip/exe, those extensions should be prompted for download automatically.

>> it pulls up a page with a broken image sign when i click on the link

Again, you need to give us more details if you can't solve the problem yourself. All I can do at this point is to do some guessing. You need to add a trailing slash on the path, for example:

Alias /icons/ "/www/icons/"

Reply With Quote
  #7  
Old February 3rd, 2002, 11:11 PM
Sledge48 Sledge48 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 4 Sledge48 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Ah, I see. Thanks for your help :-)

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > file download configuration


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway